Author: alessio.soldano(a)jboss.com
Date: 2009-01-24 05:46:05 -0500 (Sat, 24 Jan 2009)
New Revision: 9116
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpointReference/BindingProviderTestCase.java
Log:
fixing regression
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpointReference/BindingProviderTestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpointReference/BindingProviderTestCase.java 2009-01-24
09:56:50 UTC (rev 9115)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/endpointReference/BindingProviderTestCase.java 2009-01-24
10:46:05 UTC (rev 9116)
@@ -111,8 +111,9 @@
assertEquals("http://www.w3.org/2005/08/addressing",
endpointReference.getAttribute("xmlns"));
NodeList addresses = endpointReference.getElementsByTagName("Address");
assertEquals(1, addresses.getLength());
- String targetEndpointAddress = "localhost".equals(getServerHost()) ?
"http://127.0.0.1:8080/jaxws-endpointReference" : TARGET_ENDPOINT_ADDRESS;
- assertEquals(targetEndpointAddress,
addresses.item(0).getFirstChild().getNodeValue());
+ String eprAddress = addresses.item(0).getFirstChild().getNodeValue();
+ eprAddress = eprAddress.replace("127.0.0.1", "localhost");
+ assertEquals(TARGET_ENDPOINT_ADDRESS.replace("127.0.0.1",
"localhost"), eprAddress);
}
private class MyEndpointReference extends EndpointReference