[jboss-cvs] JBossAS SVN: r106604 - in trunk/resteasy-int/test/application-scanned-war/src: test/java/org/jboss/resteasy/test/jboss and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jul 12 13:54:03 EDT 2010


Author: bill.burke at jboss.com
Date: 2010-07-12 13:54:03 -0400 (Mon, 12 Jul 2010)
New Revision: 106604

Modified:
   trunk/resteasy-int/test/application-scanned-war/src/main/java/org/jboss/resteasy/test/smoke/MyApplicationConfig.java
   trunk/resteasy-int/test/application-scanned-war/src/test/java/org/jboss/resteasy/test/jboss/AppConfigTest.java
Log:


Modified: trunk/resteasy-int/test/application-scanned-war/src/main/java/org/jboss/resteasy/test/smoke/MyApplicationConfig.java
===================================================================
--- trunk/resteasy-int/test/application-scanned-war/src/main/java/org/jboss/resteasy/test/smoke/MyApplicationConfig.java	2010-07-12 17:48:39 UTC (rev 106603)
+++ trunk/resteasy-int/test/application-scanned-war/src/main/java/org/jboss/resteasy/test/smoke/MyApplicationConfig.java	2010-07-12 17:54:03 UTC (rev 106604)
@@ -1,5 +1,6 @@
 package org.jboss.resteasy.test.smoke;
 
+import javax.ws.rs.ApplicationPath;
 import javax.ws.rs.core.Application;
 import java.util.HashSet;
 import java.util.Set;
@@ -8,6 +9,7 @@
  * @author <a href="mailto:bill at burkecentral.com">Bill Burke</a>
  * @version $Revision: 1 $
  */
+ at ApplicationPath("/app-path")
 public class MyApplicationConfig extends Application
 {
    private Set<Class<?>> classes = new HashSet<Class<?>>();

Modified: trunk/resteasy-int/test/application-scanned-war/src/test/java/org/jboss/resteasy/test/jboss/AppConfigTest.java
===================================================================
--- trunk/resteasy-int/test/application-scanned-war/src/test/java/org/jboss/resteasy/test/jboss/AppConfigTest.java	2010-07-12 17:48:39 UTC (rev 106603)
+++ trunk/resteasy-int/test/application-scanned-war/src/test/java/org/jboss/resteasy/test/jboss/AppConfigTest.java	2010-07-12 17:54:03 UTC (rev 106604)
@@ -40,19 +40,19 @@
    public void testIt()
    {
       HttpClient client = new HttpClient();
-      _test(client, "http://localhost:8080/application-scan-test/my", "\"hello\"");
-      _test(client, "http://localhost:8080/application-scan-test/my", "\"hello\"");
-      _test(client, "http://localhost:8080/application-scan-test/my", "\"hello\"");
+      _test(client, "http://localhost:8080/application-scan-test/app-path/my", "\"hello\"");
+      _test(client, "http://localhost:8080/application-scan-test/app-path/my", "\"hello\"");
+      _test(client, "http://localhost:8080/application-scan-test/app-path/my", "\"hello\"");
    }
 
    @Test
    public void testSingletons() throws Exception
    {
-      ClientRequest request = new ClientRequest("http://localhost:8080/application-scan-test/my/exception");
+      ClientRequest request = new ClientRequest("http://localhost:8080/application-scan-test/app-path/my/exception");
       ClientResponse response = request.get();
       Assert.assertEquals(412, response.getStatus());
 
-      ClientRequest countRequest = new ClientRequest("http://localhost:8080/application-scan-test/my/exception/count");
+      ClientRequest countRequest = new ClientRequest("http://localhost:8080/application-scan-test/app-path/my/exception/count");
       String res = countRequest.getTarget(String.class);
       Assert.assertEquals("1", res);
 



More information about the jboss-cvs-commits mailing list