@@ -0,0 +1,872 @@
+package js2as;%0D%0A%0D%0Aimport static org.junit.Assert.*;%0D%0A%0D%0Aimport org.junit.Test;%0D%0A%0D%0Apublic class ArgsMgrTest %7B%0D%0A%0D%0A%09@Test%0D%0A%09public void testCollectArgs_InNormalCase() %7B%0D%0A%09%09String%5B%5D args = %7B%0D%0A%09%09%09%22root_dir/%22, %22./a.json%22, %22./b.json%22, %22./c.json%22%0D%0A%09%09%7D;%0D%0A%09%09%0D%0A%09%09assertTrue(ArgsMgr.collectArgs(args));%0D%0A%09%09assertEquals(args%5B0%5D, ArgsMgr.ARG_RES_DIR_ROOT);%0D%0A%09%09assertEquals(3, ArgsMgr.ARG_FILE_PATHS.length);%0D%0A%09%09for (int i = 0; i %3C ArgsMgr.ARG_FILE_PATHS.length; i++) %7B%0D%0A%09%09%09assertEquals(args%5Bi+1%5D, ArgsMgr.ARG_FILE_PATHS%5Bi%5D);%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%09%0D%0A%09@Test%0D%0A%09public void testCollectArgs_InNeedHelpCase() %7B%0D%0A%09%09String%5B%5D args = new String%5B0%5D;%0D%0A%09%09assertFalse(ArgsMgr.collectArgs(args));%0D%0A%09%09%0D%0A%09%09args = new String%5B1%5D;%0D%0A%09%09args%5B0%5D = %22-h%22;%0D%0A%09%09assertFalse(ArgsMgr.collectArgs(args));%09%09%0D%0A%0D%0A%09%09args = new String%5B2%5D;%0D%0A%09%09args%5B0%5D = %22--help%22;%0D%0A%09%09args%5B1%5D = %22aaa%22;%0D%0A%09%09assertFalse(ArgsMgr.collectArgs(args));%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Add the unit test of ArgsMgrTest.java.