Author: veithen
Date: Sun Dec 19 10:32:45 2010
New Revision: 1050793
URL: http://svn.apache.org/viewvc?rev=1050793&view=rev
Log:
Added some code to investigate the recent build failure on Hudson.
Modified:
axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/StringDispatchTests.java
Modified:
axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/StringDispatchTests.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/StringDispatchTests.java?rev=1050793&r1=1050792&r2=1050793&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/StringDispatchTests.java
(original)
+++
axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/dispatch/StringDispatchTests.java
Sun Dec 19 10:32:45 2010
@@ -29,6 +29,9 @@ import javax.xml.ws.ProtocolException;
import javax.xml.ws.Response;
import javax.xml.ws.Service;
import javax.xml.ws.WebServiceException;
+
+import java.net.InetAddress;
+import java.net.URL;
import java.net.UnknownHostException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
@@ -431,7 +434,16 @@ public class StringDispatchTests extends
}
- public void testSyncPayloadMode_badHostName() {
+ public void testSyncPayloadMode_badHostName() throws Exception {
+ String host = new URL(DispatchTestConstants.BADURL).getHost();
+ try {
+ InetAddress addr = InetAddress.getByName(host);
+ System.out.println(host + " resolves to " + addr.getHostAddress()
+ "; skipping test case");
+ return;
+ } catch (UnknownHostException ex) {
+ // This is what we expect
+ }
+
TestLogger.logger.debug("---------------------------------------");
TestLogger.logger.debug("test: " + getName());