diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2011-08-15 09:56:56 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2011-08-15 09:56:56 +0000 |
commit | 98eda01539616ddb470301bb2c6b96728f9bc3e6 (patch) | |
tree | 7cc21b80a09b4783eb6961cb8f9ed6dab15c07fd /sca-java-2.x/trunk | |
parent | f8c8cf8cdff1c8eb280686715b3a612f71375375 (diff) |
Re-enable this now TUSCANY-3917 is checked in
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1157753 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-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 {
|