diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-28 05:20:17 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-28 05:20:17 +0000 |
commit | 7c5f0b396782c002554b343eb960923f2504dcf6 (patch) | |
tree | a413b10454cd8f0488388580523233161b37fe9a /sca-java-2.x/trunk/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs | |
parent | 68fcd3094fc78203a814725bc5542820c0f0f9b0 (diff) |
update jax-rs dependencies
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@928343 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs')
2 files changed, 8 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/HelloWorldApp.java b/sca-java-2.x/trunk/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/HelloWorldApp.java index ea35c546bc..46e9068ee1 100644 --- a/sca-java-2.x/trunk/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/HelloWorldApp.java +++ b/sca-java-2.x/trunk/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/HelloWorldApp.java @@ -50,7 +50,7 @@ public class HelloWorldApp extends Application { */ public HelloWorldApp() { instances.add(new HelloWorld()); - classes.add(HelloWorld.class); + // classes.add(HelloWorld.class); } /** diff --git a/sca-java-2.x/trunk/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/test/HelloWorldTestCase.java b/sca-java-2.x/trunk/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/test/HelloWorldTestCase.java index 0821850598..20ddf88505 100644 --- a/sca-java-2.x/trunk/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/test/HelloWorldTestCase.java +++ b/sca-java-2.x/trunk/modules/implementation-jaxrs-runtime/src/test/java/helloworld/jaxrs/test/HelloWorldTestCase.java @@ -21,9 +21,13 @@ package helloworld.jaxrs.test; import java.io.File; +import junit.framework.Assert; + import org.apache.tuscany.sca.node.Contribution; import org.apache.tuscany.sca.node.Node; import org.apache.tuscany.sca.node.NodeFactory; +import org.apache.wink.client.ClientResponse; +import org.apache.wink.client.RestClient; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Ignore; @@ -49,6 +53,9 @@ public class HelloWorldTestCase { @Test public void testDummy() { + RestClient client = new RestClient(); + ClientResponse response = client.resource("http://localhost:8080/world").get(); + Assert.assertEquals(200, response.getStatusCode()); } /** |