diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2011-10-10 05:01:22 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2011-10-10 05:01:22 +0000 |
commit | 5edad53664c23e540bea5ed336bbfa3948bb1035 (patch) | |
tree | 9d7254c29826912db0c03e111958ae895c28c438 /sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/src/test/java/sample/HelloworldTestCase.java | |
parent | fc7cb9fac15928f69dc89adbadd4ef24c1cc3340 (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/getting-started/helloworld-jsonrpc/src/test/java/sample/HelloworldTestCase.java')
-rw-r--r-- | sca-java-2.x/trunk/samples/getting-started/helloworld-jsonrpc/src/test/java/sample/HelloworldTestCase.java | 4 |
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¶ms=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
|