Author: markt
Date: Tue Mar 19 21:11:11 2013
New Revision: 1458521
URL: http://svn.apache.org/r1458521
Log:
A RuntimeException in one test shouldn't stop the test run.
Modified:
tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java
Modified:
tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java?rev=1458521&r1=1458520&r2=1458521&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java
(original)
+++ tomcat/trunk/test/org/apache/tomcat/websocket/TesterWsClientAutobahn.java
Tue Mar 19 21:11:11 2013
@@ -29,6 +29,8 @@ import javax.websocket.OnMessage;
import javax.websocket.Session;
import javax.websocket.WebSocketContainer;
+import org.apache.tomcat.util.ExceptionUtils;
+
/**
* Runs the Autobahn test suite in client mode for testing the WebSocket client
* implementation.
@@ -52,7 +54,12 @@ public class TesterWsClientAutobahn {
} else {
System.out.print('.');
}
- executeTestCase(wsc, testCase);
+ try {
+ executeTestCase(wsc, testCase);
+ } catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
+ t.printStackTrace();
+ }
}
System.out.println("Testing complete");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]