web_backend_develope
chenlw 8 years ago
parent 670bdea55d
commit e0d09a7374

@ -45,6 +45,14 @@ public class FileOperationTest {
FileOperateHelper.fileReWrite("D:/test/1.txt", "asdaaaaaaaaa\r\n");
}
@Test
public void WriteFile() {
FileOperateHelper.fileWrite("D:/test/1.txt", "asdadada\r\n");
FileOperateHelper.fileWrite("D:/test/1.txt", "asdadada\r\n");
FileOperateHelper.fileWrite("D:/test/1.txt", "asdaaaaaaaaa\r\n");
}
@Test
public void getsystem() {
Properties sys = System.getProperties();

@ -0,0 +1,22 @@
package com.platform.test;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import com.platform.entities.CheckoutEntity;
public class MapTest {
@Test
public void TestRemove(){
Map<String, CheckoutEntity> map = new HashMap<String, CheckoutEntity>();
CheckoutEntity t = new CheckoutEntity();
t.setId(21);
map.put("12", t);
CheckoutEntity tmp = map.remove("12");
System.out.println(tmp.getId());
}
}
Loading…
Cancel
Save