diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-31 06:19:36 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-31 06:19:36 +0000 |
commit | 9376cf7266b7b264879cec02a48555eaa9a20299 (patch) | |
tree | b35f55f561356e457f3f06878066ef0d072b8cb5 /sca-java-2.x/trunk/modules/binding-http-runtime/src/test | |
parent | f67386be77288ab36155456f9d60692fda75d065 (diff) |
Start function for handling xml format
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@991088 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-http-runtime/src/test')
2 files changed, 2 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/HelloworldTestCase.java b/sca-java-2.x/trunk/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/HelloworldTestCase.java index c7f2403af6..89598b91c7 100644 --- a/sca-java-2.x/trunk/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/HelloworldTestCase.java +++ b/sca-java-2.x/trunk/modules/binding-http-runtime/src/test/java/org/apache/tuscany/sca/binding/http/HelloworldTestCase.java @@ -70,7 +70,7 @@ public class HelloworldTestCase { public void testXml() throws Exception {
URL url = new URL("http://localhost:8080/HelloworldXmlComponent/Helloworld/sayHello?arg0=Petra");
InputStream is = url.openStream();
- Assert.assertTrue(read(is).endsWith(">Hello null</return>"));
+ Assert.assertTrue(read(is).endsWith(">Hello Petra</return>"));
}
private static String read(InputStream is) throws IOException {
diff --git a/sca-java-2.x/trunk/modules/binding-http-runtime/src/test/resources/helloworld.composite b/sca-java-2.x/trunk/modules/binding-http-runtime/src/test/resources/helloworld.composite index 7497cfcbac..d836ed3860 100644 --- a/sca-java-2.x/trunk/modules/binding-http-runtime/src/test/resources/helloworld.composite +++ b/sca-java-2.x/trunk/modules/binding-http-runtime/src/test/resources/helloworld.composite @@ -26,6 +26,7 @@ <implementation.java class="org.apache.tuscany.sca.binding.http.HelloworldImpl"/>
<service name="Helloworld">
<tuscany:binding.http />
+ <binding.ws name="ws" />
</service>
</component>
|