summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-10-10 05:01:22 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-10-10 05:01:22 +0000
commit5edad53664c23e540bea5ed336bbfa3948bb1035 (patch)
tree9d7254c29826912db0c03e111958ae895c28c438 /sca-java-2.x/trunk/samples
parentfc7cb9fac15928f69dc89adbadd4ef24c1cc3340 (diff)
Fix test case and update license
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1180782 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples')
-rw-r--r--sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/src/test/java/sample/HelloworldTestCase.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/src/test/java/sample/HelloworldTestCase.java b/sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/src/test/java/sample/HelloworldTestCase.java
index 61e53a6939..f4f382a590 100644
--- a/sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/src/test/java/sample/HelloworldTestCase.java
+++ b/sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/src/test/java/sample/HelloworldTestCase.java
@@ -48,7 +48,9 @@ public class HelloworldTestCase {
// test that has exposed an HTTP endpoint that works as expected
// JSONRPC args are base64 encoded, ["World"] = WyJXb3JsZCJd
URL url = new URL("http://localhost:8080/HelloworldComponent/Helloworld?method=sayHello&params=WyJXb3JsZCJd&id=1");
- Assert.assertEquals("{\"id\":1,\"result\":\"Hello World\"}", read(url.openStream()));
+ String response = read(url.openStream());
+ System.out.println(response);
+ Assert.assertTrue(response.contains("\"id\":1,\"result\":\"Hello World\""));
} finally {
// Stop the Tuscany runtime Node