[Batchserver-cvs] batchserver/test/org/jmonks/batchserver/framework/common ErrorCodeTest.java,1.1,1.
Brought to you by:
suresh_pragada
From: Suresh <sur...@us...> - 2006-03-07 03:41:38
|
Update of /cvsroot/batchserver/batchserver/test/org/jmonks/batchserver/framework/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18819 Modified Files: ErrorCodeTest.java FrameworkUtilTest.java StatusCodeTest.java Log Message: no message Index: FrameworkUtilTest.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/test/org/jmonks/batchserver/framework/common/FrameworkUtilTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FrameworkUtilTest.java 6 Mar 2006 23:54:21 -0000 1.3 --- FrameworkUtilTest.java 7 Mar 2006 03:41:35 -0000 1.4 *************** *** 43,46 **** --- 43,50 ---- } + /** + * Test to make sure method "loadPropertiesFromElementToMap" is not accepting null + * parameters as input and loading the properties as inteded. + */ public void testLoadPropertiesFromElementToMap() throws Exception { *************** *** 83,87 **** Element propertyElement2=document.createElement("property"); ! propertyElement1.setAttribute("key","config-key2"); Node textNode2=document.createCDATASection("This is CDATA section"); propertyElement2.appendChild(textNode2); --- 87,91 ---- Element propertyElement2=document.createElement("property"); ! propertyElement2.setAttribute("key","config-key2"); Node textNode2=document.createCDATASection("This is CDATA section"); propertyElement2.appendChild(textNode2); *************** *** 99,103 **** { /** ! * This is expected. */ } --- 103,107 ---- { /** ! * This is as expected. */ } *************** *** 105,110 **** FrameworkUtil.loadPropertiesFromElementToMap(configElement, propertyMap); assertEquals(2,propertyMap.size()); - System.out.println(propertyMap); - System.out.println(configElement); } --- 109,112 ---- Index: ErrorCodeTest.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/test/org/jmonks/batchserver/framework/common/ErrorCodeTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ErrorCodeTest.java 4 Mar 2006 04:20:34 -0000 1.1 --- ErrorCodeTest.java 7 Mar 2006 03:41:35 -0000 1.2 *************** *** 46,50 **** ErrorCode errorCode=ErrorCode.JOB_NOT_CONFIGURED; int code=errorCode.getCode(); ! Assert.assertEquals(1002,code); } --- 46,50 ---- ErrorCode errorCode=ErrorCode.JOB_NOT_CONFIGURED; int code=errorCode.getCode(); ! assertEquals(1002,code); } *************** *** 56,60 **** ErrorCode errorCode=ErrorCode.JOB_NOT_CONFIGURED; String message=errorCode.getMessage(); ! Assert.assertNotNull(message); } --- 56,60 ---- ErrorCode errorCode=ErrorCode.JOB_NOT_CONFIGURED; String message=errorCode.getMessage(); ! assertNotNull(message); } Index: StatusCodeTest.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/test/org/jmonks/batchserver/framework/common/StatusCodeTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** StatusCodeTest.java 4 Mar 2006 04:20:34 -0000 1.1 --- StatusCodeTest.java 7 Mar 2006 03:41:35 -0000 1.2 *************** *** 44,48 **** StatusCode statusCode=StatusCode.SUCCESS; int code=statusCode.getCode(); ! Assert.assertEquals(0,code); } --- 44,48 ---- StatusCode statusCode=StatusCode.SUCCESS; int code=statusCode.getCode(); ! assertEquals(0,code); } |