diff --git a/test/com/platform/test/FileOperationTest.java b/test/com/platform/test/FileOperationTest.java index 31df8260..41aad629 100644 --- a/test/com/platform/test/FileOperationTest.java +++ b/test/com/platform/test/FileOperationTest.java @@ -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(); diff --git a/test/com/platform/test/MapTest.java b/test/com/platform/test/MapTest.java new file mode 100644 index 00000000..e53a6f83 --- /dev/null +++ b/test/com/platform/test/MapTest.java @@ -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 map = new HashMap(); + CheckoutEntity t = new CheckoutEntity(); + t.setId(21); + map.put("12", t); + CheckoutEntity tmp = map.remove("12"); + System.out.println(tmp.getId()); + } + +}