You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2002/09/12 00:23:39 UTC
cvs commit: xml-axis/java/test/functional TestJAXMSamples.java
dims 2002/09/11 15:23:39
Modified: java/test/functional TestJAXMSamples.java
Log:
- Use the general SocketException instead of ConnectException
- Cleanup imports.
Revision Changes Path
1.16 +6 -7 xml-axis/java/test/functional/TestJAXMSamples.java
Index: TestJAXMSamples.java
===================================================================
RCS file: /home/cvs/xml-axis/java/test/functional/TestJAXMSamples.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- TestJAXMSamples.java 18 Jul 2002 21:07:10 -0000 1.15
+++ TestJAXMSamples.java 11 Sep 2002 22:23:39 -0000 1.16
@@ -55,17 +55,16 @@
package test.functional;
-import samples.jaxm.DelayedStockQuote;
import junit.framework.TestCase;
import org.apache.axis.AxisFault;
-
import org.apache.axis.components.logger.LogFactory;
import org.apache.commons.logging.Log;
-
-import samples.jaxm.UddiPing;
+import samples.jaxm.DelayedStockQuote;
import samples.jaxm.SOAPFaultTest;
+import samples.jaxm.UddiPing;
+
+import java.net.SocketException;
-import java.net.ConnectException;
/**
* Test the JAX-RPC compliance samples.
@@ -96,7 +95,7 @@
if (t != null) {
t.printStackTrace();
if (t instanceof AxisFault) {
- if (((AxisFault) t).detail instanceof ConnectException) {
+ if (((AxisFault) t).detail instanceof SocketException) {
System.out.println("Connect failure caused JAXM UddiPing to be skipped.");
return;
}
@@ -123,7 +122,7 @@
if (t != null) {
t.printStackTrace();
if (t instanceof AxisFault) {
- if (((AxisFault) t).detail instanceof ConnectException) {
+ if (((AxisFault) t).detail instanceof SocketException) {
System.out.println("Connect failure caused JAXM DelayedStockQuote to be skipped.");
return;
}