rubys 2002/10/03 07:26:27
Modified: java/test/wsdl/terra Tag: axis1_0 TerraServiceTestCase.java
Log:
Merge terra service test case into 1.0
+1 Votes: Glyn, Tom, Rich, Steve, Sam, Glen, Russell
Revision Changes Path
No revision
No revision
1.1.4.1 +12 -0 xml-axis/java/test/wsdl/terra/TerraServiceTestCase.java
Index: TerraServiceTestCase.java
===================================================================
RCS file: /home/cvs/xml-axis/java/test/wsdl/terra/TerraServiceTestCase.java,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -u -r1.1 -r1.1.4.1
--- TerraServiceTestCase.java 13 Sep 2002 13:42:22 -0000 1.1
+++ TerraServiceTestCase.java 3 Oct 2002 14:26:27 -0000 1.1.4.1
@@ -7,6 +7,10 @@
package test.wsdl.terra;
+import org.apache.axis.AxisFault;
+
+import java.net.ConnectException;
+
public class TerraServiceTestCase extends junit.framework.TestCase {
public TerraServiceTestCase(java.lang.String name) {
super(name);
@@ -39,6 +43,14 @@
}
}
catch (java.rmi.RemoteException re) {
+ if (re instanceof AxisFault) {
+ AxisFault fault = (AxisFault) re;
+ if (fault.detail instanceof ConnectException ||
+ fault.getFaultCode().getLocalPart().equals("HTTP")) {
+ System.err.println("TerraService HTTP error: " + fault);
+ return;
+ }
+ }
throw new junit.framework.AssertionFailedError("Remote Exception
caught: " + re);
}
}