You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/04/23 19:52:46 UTC

svn commit: r650964 - /webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java

Author: dims
Date: Wed Apr 23 10:52:45 2008
New Revision: 650964

URL: http://svn.apache.org/viewvc?rev=650964&view=rev
Log:
just check if the host name is present, no need to check for exact match

Modified:
    webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java

Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java?rev=650964&r1=650963&r2=650964&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/FaultyWebServiceTests.java Wed Apr 23 10:52:45 2008
@@ -112,7 +112,7 @@
 
         assertNotNull(exception);
         assertTrue(exception.getCause() instanceof UnknownHostException);
-        assertEquals(exception.getCause().getMessage(), host);
+        assertTrue(exception.getCause().getMessage().indexOf(host)!=-1);
 
     }
 
@@ -147,8 +147,7 @@
 
         assertNotNull(exception);
         assertTrue(exception.getCause() instanceof UnknownHostException);
-        assertEquals(exception.getCause().getMessage(), host);
-
+        assertTrue(exception.getCause().getMessage().indexOf(host)!=-1);
     }
 
     public void testFaultyWebService_badEndpoint_AsyncCallback()



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org