tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From am...@apache.org
Subject svn commit: r618933 - /incubator/tuscany/java/sdo/impl/src/test/java/org/apache/tuscany/sdo/test/DateConversionTestCase.java
Date Wed, 06 Feb 2008 09:28:54 GMT
Author: amita
Date: Wed Feb  6 01:28:52 2008
New Revision: 618933

URL: http://svn.apache.org/viewvc?rev=618933&view=rev
Log:
TUSCANY-1514 test case to verify DataHelperImpl.toDate(String) does not throw NPE when passed
in null - actual code fix in rev. 564600

Modified:
    incubator/tuscany/java/sdo/impl/src/test/java/org/apache/tuscany/sdo/test/DateConversionTestCase.java

Modified: incubator/tuscany/java/sdo/impl/src/test/java/org/apache/tuscany/sdo/test/DateConversionTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sdo/impl/src/test/java/org/apache/tuscany/sdo/test/DateConversionTestCase.java?rev=618933&r1=618932&r2=618933&view=diff
==============================================================================
--- incubator/tuscany/java/sdo/impl/src/test/java/org/apache/tuscany/sdo/test/DateConversionTestCase.java
(original)
+++ incubator/tuscany/java/sdo/impl/src/test/java/org/apache/tuscany/sdo/test/DateConversionTestCase.java
Wed Feb  6 01:28:52 2008
@@ -61,6 +61,12 @@
         test_date = test_calendar.getTime();  
     }
     
+    //Test for TUSCANY-1514
+    public void testNullStringToDate() throws Exception {
+    	Date result = data_helper.toDate(null);
+    	assertEquals(null, result);
+    }
+    
     private static class TestType
     {
         private static final Class[] DATE_CLASS_ARRAY = {Date.class};



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message