[Batchserver-cvs] batchserver/test/org/jmonks/batchserver/framework FrameworkTestSuite.java, 1.7, 1
Brought to you by:
suresh_pragada
From: Suresh <sur...@us...> - 2006-09-06 22:08:47
|
Update of /cvsroot/batchserver/batchserver/test/org/jmonks/batchserver/framework In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv13980 Modified Files: FrameworkTestSuite.java MainTest.java Log Message: no message Index: FrameworkTestSuite.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/test/org/jmonks/batchserver/framework/FrameworkTestSuite.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** FrameworkTestSuite.java 5 Sep 2006 18:16:05 -0000 1.7 --- FrameworkTestSuite.java 6 Sep 2006 22:08:43 -0000 1.8 *************** *** 60,63 **** --- 60,64 ---- mainSuite.addTest(PoolJobControllerConfigTest.suite()); mainSuite.addTest(RepositoryTest.suite()); + mainSuite.addTest(MainTest.suite()); return mainSuite; Index: MainTest.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/test/org/jmonks/batchserver/framework/MainTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MainTest.java 5 Sep 2006 21:49:08 -0000 1.1 --- MainTest.java 6 Sep 2006 22:08:43 -0000 1.2 *************** *** 27,35 **** public static Test suite() { ! TestSuite suite = new TestSuite(MainTest.class); return suite; } /** * Test of process method by passing the empty configMap. */ --- 27,51 ---- public static Test suite() { ! TestSuite suite = new TestSuite(); ! suite.addTest(new MainTest("testProcess")); ! //suite.addTest(new MainTest("testProcessNoArgs")); ! //suite.addTest(new MainTest("testProcessNullArgs")); ! //suite.addTest(new MainTest("testProcessWrongJobName")); return suite; } /** + * Test of process method by passing the right configuration. + */ + public void testProcess() + { + Map args=new HashMap(); + args.put(Main.JOB_NAME_KEY_NAME, "process_file_xyz"); + ErrorCode returnCode=Main.process(args); + assertNotNull(returnCode); + assertEquals(ErrorCode.JOB_COMPLETED_SUCCESSFULLY.getCode(), returnCode.getCode()); + } + + /** * Test of process method by passing the empty configMap. */ |