Author: alessio.soldano(a)jboss.com
Date: 2012-09-14 12:14:46 -0400 (Fri, 14 Sep 2012)
New Revision: 16728
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderPlugin.java
Log:
[JBWS-3510] Adding testcase
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderPlugin.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderPlugin.java 2012-09-14
16:14:24 UTC (rev 16727)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderPlugin.java 2012-09-14
16:14:46 UTC (rev 16728)
@@ -93,10 +93,12 @@
{
provider.setGenerateWsdl(true);
provider.setExtension(true);
+ final String portSoapAddress = "http://www.jboss.org/myEp";
+ provider.setPortSoapAddress(portSoapAddress); //also check portSoapAddress option
File outputDir = new File(outputDirectory.getAbsolutePath() + "-soap12");
provide(outputDir);
- verifyWSDL(outputDir, true);
+ verifyWSDL(outputDir, true, portSoapAddress);
}
/**
@@ -196,10 +198,10 @@
private void verifyWSDL(File directory) throws Exception
{
- this.verifyWSDL(directory, false);
+ this.verifyWSDL(directory, false, null);
}
- private void verifyWSDL(File directory, boolean soap12) throws Exception
+ private void verifyWSDL(File directory, boolean soap12, String portSoapAddress) throws
Exception
{
File wsdl = new File(
directory.getAbsolutePath()+
@@ -220,6 +222,12 @@
{
assertEquals("http://schemas.xmlsoap.org/wsdl/soap/",
soapBindingElement.getNamespaceURI());
}
+
+ if (portSoapAddress != null) {
+ Element portElement = DOMUtils.getFirstChildElement(serviceElement,
"port");
+ Element addressElement = DOMUtils.getFirstChildElement(portElement,
"address");
+ assertEquals(portSoapAddress,
addressElement.getAttribute("location"));
+ }
}
/**