glyn 02/02/20 07:07:28
Modified: java/test/wsdl/multithread MultithreadTestCase.java
Log:
Capture stack trace for multithreaded testcase failures.
Revision Changes Path
1.5 +10 -0 xml-axis/java/test/wsdl/multithread/MultithreadTestCase.java
Index: MultithreadTestCase.java
===================================================================
RCS file: /home/cvs/xml-axis/java/test/wsdl/multithread/MultithreadTestCase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- MultithreadTestCase.java 5 Feb 2002 16:22:40 -0000 1.4
+++ MultithreadTestCase.java 20 Feb 2002 15:07:28 -0000 1.5
@@ -11,6 +11,9 @@
import org.apache.axis.AxisFault;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
import samples.addr.AddressBook;
import samples.addr.AddressBookServiceLocator;
import samples.addr.AddressBookSOAPBindingStub;
@@ -27,6 +30,9 @@
*/
public class MultithreadTestCase extends TestCase {
+ private static Log log =
+ LogFactory.getLog(MultithreadTestCase.class.getName());
+
private AddressBook binding;
public MultithreadTestCase(String name) {
@@ -79,6 +85,10 @@
// likely to have something to do with bad AXIS runtime.
if (!(t instanceof AxisFault &&
((AxisFault) t).detail instanceof ConnectException)) {
+
+ // Log a stack trace as we may not be so lucky next time!
+ log.fatal("Throwable caught: ", t);
+
setError(new AssertionFailedError("Throwable caught: " + t));
}
}