commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r723934 - /commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
Date Sat, 06 Dec 2008 00:45:02 GMT
Author: sebb
Date: Fri Dec  5 16:45:02 2008
New Revision: 723934

URL: http://svn.apache.org/viewvc?rev=723934&view=rev
Log:
SCXML-91 - SCXMLTestHelper#testExecutorSerializability() should not ignore I/O errors.

Modified:
    commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java

Modified: commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java?rev=723934&r1=723933&r2=723934&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
(original)
+++ commons/proper/scxml/branches/J6/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
Fri Dec  5 16:45:02 2008
@@ -301,9 +301,9 @@
                 + " in use is not serializable");
             return scxml;
         } catch(IOException ex) {
-            ex.printStackTrace();
+            throw new RuntimeException(ex);
         } catch(ClassNotFoundException ex) {
-            ex.printStackTrace();
+            throw new RuntimeException(ex);
         }
         return roundtrip;
     }
@@ -333,9 +333,9 @@
                 + " in use is not serializable");
             return exec;
         } catch(IOException ex) {
-            ex.printStackTrace();
+            throw new RuntimeException(ex);
         } catch(ClassNotFoundException ex) {
-            ex.printStackTrace();
+            throw new RuntimeException(ex);
         }
         return roundtrip;
     }



Mime
View raw message