summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-08-12 15:11:09 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-08-12 15:11:09 +0000
commite3e3d53c72d0bcf3584c845f5e626b2484e6bbea (patch)
tree42730cd595986d89dbef116cf594461f4540bcde /sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java
parentd5dafef7044f1ea07f297c5a414d2c9bf15ed3f9 (diff)
Looking at answering Ant's question about serializing WSDL for enpoints as part of making cross domain interface matching work. Turns out to be more difficult that I would have thought. Mainly to do with how you re-build the Tuscany WSDL/XSD model from a string rather than from a set of files (which is where I think Ant got to). Any how I extended the WSDL test to experiment and have some code that works but isn't yet in the runtime (see WSDLSerializationTestCase). Don't want to loose it though.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1157148 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/HelloWorldWSDLMergedTestCase.java25
1 files changed, 24 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java b/sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java
index bc69473abe..74998379c4 100644
--- a/sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java
+++ b/sca-java-2.x/trunk/testing/itest/ws/wsdl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HelloWorldWSDLMergedTestCase.java
@@ -19,6 +19,10 @@
package org.apache.tuscany.sca.binding.ws.axis2;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.ObjectOutputStream;
+
import junit.framework.Assert;
import junit.framework.TestCase;
@@ -26,6 +30,7 @@ import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMText;
+import org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointImpl;
import org.apache.tuscany.sca.node.Contribution;
import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.NodeFactory;
@@ -60,7 +65,6 @@ public class HelloWorldWSDLMergedTestCase extends TestCase {
Assert.assertEquals("Hello petra", ((OMText)child.getFirstOMChild()).getText());
}
- @Ignore
public void testHelloWorldRepeating() throws Exception {
for (int i = 0; i < 2; i++){
OMFactory fac = OMAbstractFactory.getOMFactory();
@@ -78,6 +82,25 @@ public class HelloWorldWSDLMergedTestCase extends TestCase {
helloWorld = node.getService(HelloWorldOM.class, "HelloWorldWSDLMergedComponent");
}
}
+
+
+/*
+ public void testWSDLWrite(){
+ RuntimeEndpointImpl endpoint = (RuntimeEndpointImpl)node.getDomainComposite().getComponents().get(0).getServices().get(0).getEndpoints().get(0);
+ try
+ {
+ ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
+ ObjectOutputStream objectStream = new ObjectOutputStream(byteStream);
+ objectStream.writeObject(endpoint);
+ objectStream.close();
+ System.out.println(byteStream.toString());
+ }
+ catch(IOException ex)
+ {
+ ex.printStackTrace();
+ }
+ }
+*/
@Override
protected void tearDown() throws Exception {