You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2008/12/06 01:43:10 UTC

svn commit: r723933 - /commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java

Author: sebb
Date: Fri Dec  5 16:43:09 2008
New Revision: 723933

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

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

Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java?rev=723933&r1=723932&r2=723933&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java (original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/SCXMLTestHelper.java Fri Dec  5 16:43:09 2008
@@ -334,9 +334,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;
     }
@@ -366,9 +366,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;
     }