Update of /cvsroot/batchserver/batchserver/test/org/jmonks/batch/framework
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29095
Modified Files:
MainTest.java
Log Message:
no message
Index: MainTest.java
===================================================================
RCS file: /cvsroot/batchserver/batchserver/test/org/jmonks/batch/framework/MainTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MainTest.java 15 Sep 2006 22:04:43 -0000 1.2
--- MainTest.java 19 Sep 2006 00:09:30 -0000 1.3
***************
*** 29,52 ****
{
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.
*/
--- 29,39 ----
{
TestSuite suite = new TestSuite();
! suite.addTest(new MainTest("testProcessNoArgs"));
! suite.addTest(new MainTest("testProcessNullArgs"));
! suite.addTest(new MainTest("testProcessWrongJobName"));
return suite;
}
/**
* Test of process method by passing the empty configMap.
*/
***************
*** 85,89 ****
assertEquals(ErrorCode.JOB_IS_NOT_CONFIGURED.getCode(), exitCode);
}
-
-
}
--- 72,74 ----
|