Author: alessio.soldano(a)jboss.com
Date: 2008-05-13 09:26:13 -0400 (Tue, 13 May 2008)
New Revision: 7017
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws771/JBWS771TestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws771/binding.xml
Log:
More on JBWS771TestCase, checking the sources are actually generated
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws771/JBWS771TestCase.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws771/JBWS771TestCase.java 2008-05-13
10:53:45 UTC (rev 7016)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws771/JBWS771TestCase.java 2008-05-13
13:26:13 UTC (rev 7017)
@@ -150,13 +150,15 @@
public void testWSConsume() throws Exception
{
// use absolute path for the output to be re-usable
- String absOutput = new File(RESOURCES_DIR +
"/../wsconsume/java").getAbsolutePath();
- String command = JBOSS_HOME + "/bin/wsconsume.sh -k -o " + absOutput +
" --binding=" + RESOURCES_DIR + "/jaxws/jbws771/binding.xml " +
wsdlURL.toExternalForm();
+ String absOutput =
createResourceFile("wsconsume/java").getAbsolutePath();
+ String command = JBOSS_HOME + "/bin/wsconsume.sh -k -o " + absOutput +
" --extension --binding=" + RESOURCES_DIR + "/jaxws/jbws771/binding.xml
" + wsdlURL.toExternalForm();
Process p = executeCommand(command);
// check status code
assertStatusCode(p, "wsconsume");
-
+
+ File javaSource =
getResourceFile("wsconsume/java/org/jboss/test/ws/jaxws/jbws771/JBWS771Service.java");
+ assertTrue("Service endpoint interface not generated",
javaSource.exists());
}
private Definition getWSDLDefinition(String wsdlLocation) throws Exception
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws771/binding.xml
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws771/binding.xml 2008-05-13
10:53:45 UTC (rev 7016)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws771/binding.xml 2008-05-13
13:26:13 UTC (rev 7017)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
<jaxws:bindings
wsdlLocation="http://localhost:8080/jaxws-jbws771/IWebsvcImpl?wsdl"
-
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
+
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<jaxws:bindings
@@ -10,4 +10,4 @@
part="wsdl:definitions/wsdl:message[@name='IWebsvc_cancel']/wsdl:part[@name='parameters']"
element="tns:cancel" name="cancelMessage"/>
</jaxws:bindings>
-</jaxws:bindings>
\ No newline at end of file
+</jaxws:bindings>