You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by mc...@apache.org on 2008/04/03 14:41:35 UTC

svn commit: r644286 - /incubator/tuscany/java/sca/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java

Author: mcombellack
Date: Thu Apr  3 05:41:34 2008
New Revision: 644286

URL: http://svn.apache.org/viewvc?rev=644286&view=rev
Log:
Make sure that any exception thrown by the test is dumped to the console and thrown onwards so the test fails. Without this fix, the unit test would still pass even if it threw an Exception

Modified:
    incubator/tuscany/java/sca/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java

Modified: incubator/tuscany/java/sca/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java?rev=644286&r1=644285&r2=644286&view=diff
==============================================================================
--- incubator/tuscany/java/sca/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java (original)
+++ incubator/tuscany/java/sca/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java Thu Apr  3 05:41:34 2008
@@ -59,7 +59,7 @@
     }
 
     @Test
-    public void testOneWay() {
+    public void testOneWay() throws Exception {
         OneWayClient client =
             domain.getService(OneWayClient.class, "OneWayClientComponent");
         try {
@@ -89,10 +89,9 @@
             }
         } catch (Exception ex) {
             System.err.println("Exception: " + ex.toString());
+            ex.printStackTrace();
+            throw ex;
         }
-
-
-
     }
 
 }



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