tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agr...@apache.org
Subject svn commit: r550864 - /incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/conversion/DateConversionTest.java
Date Tue, 26 Jun 2007 17:18:12 GMT
Author: agrove
Date: Tue Jun 26 10:18:11 2007
New Revision: 550864

URL: http://svn.apache.org/viewvc?view=rev&rev=550864
Log:
improved error handling in DateConversionTest so that exception is no longer silently ignored

Modified:
    incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/conversion/DateConversionTest.java

Modified: incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/conversion/DateConversionTest.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/conversion/DateConversionTest.java?view=diff&rev=550864&r1=550863&r2=550864
==============================================================================
--- incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/conversion/DateConversionTest.java
(original)
+++ incubator/tuscany/java/cts/sdo2.1/src/main/java/test/sdo21/tests/conversion/DateConversionTest.java
Tue Jun 26 10:18:11 2007
@@ -152,8 +152,7 @@
                 date_string = (String)from_type.getCalendarMethod().invoke(data_helper, new
Object[] {test_calendar});
                 this.from_calendar = data_helper.toCalendar(date_string);
             } catch (Exception e) {
-                this.from_date = null;
-                this.from_calendar = null;
+                throw new RuntimeException( "Failed to initialize test", e );
             }
 
         }



---------------------------------------------------------------------
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