tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcombell...@apache.org
Subject svn commit: r644286 - /incubator/tuscany/java/sca/itest/oneway/src/test/java/org/apache/tuscany/sca/itest/oneway/OneWayTestCase.java
Date Thu, 03 Apr 2008 12:41:35 GMT
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


Mime
View raw message