diff options
Diffstat (limited to 'sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org')
-rw-r--r-- | sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLSerializationTestCase.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLSerializationTestCase.java b/sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLSerializationTestCase.java index eaa9356cca..a3e79ee2af 100644 --- a/sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLSerializationTestCase.java +++ b/sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/WSDLSerializationTestCase.java @@ -106,9 +106,7 @@ public class WSDLSerializationTestCase extends TestCase { }
*/
- public void testTuscanySerialization() throws Exception {
-
-/*
+ public void testTuscanySerialization() throws Exception {
// read in WSDL
String contributionLocation = "target/classes";
@@ -128,7 +126,12 @@ public class WSDLSerializationTestCase extends TestCase { ByteArrayOutputStream outStream = new ByteArrayOutputStream();
try {
WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter();
- String baseURI = wsdlDefinition.getLocation().toString();
+ String baseURI = null;
+ if (wsdlDefinition.getLocation() != null) {
+ baseURI = wsdlDefinition.getLocation().toString();
+ } else {
+ baseURI = "GeneratedWSDL";
+ }
outStream.write(baseURI.getBytes());
outStream.write(separator);
writer.writeWSDL(definition, outStream);
@@ -277,8 +280,7 @@ public class WSDLSerializationTestCase extends TestCase { Assert.fail();
}
- node.stop();
-*/
+ node.stop();
}
public void writeSchema(OutputStream outStream, XmlSchema schema) throws IOException {
|