Permalink
Browse files

wildcard "*" functionality was removed so had to remove test for it i…

…n jboss integration testing.

git-svn-id: file:///Users/billburke/jboss/resteasy/resteasy-git/svn-server-sync/resteasy/trunk/jaxrs@146 2b1ed4c4-5db3-0410-90e4-80a7a6204c25
  • Loading branch information...
1 parent 9498d49 commit ab927eae37ccb3b25500d383af00a140f8ec8c66 patriot1burke committed May 2, 2008
@@ -18,14 +18,6 @@
{
@GET
- @Path("*")
- @ProduceMime("text/plain")
- public String getWild()
- {
- return "Wild";
- }
-
- @GET
@Path("basic")
@ProduceMime("text/plain")
public String getBasic()
@@ -53,27 +53,6 @@ public void testNoDefaultsResource() throws Exception
Assert.assertEquals("1234", method.getResponseBodyAsString());
method.releaseConnection();
}
- {
- GetMethod method = new GetMethod("http://localhost:8080/basic-integration-test/should/accept/anything");
- int status = client.executeMethod(method);
- Assert.assertEquals(HttpResponseCodes.SC_OK, status);
- Assert.assertEquals("Wild", method.getResponseBodyAsString());
- method.releaseConnection();
- }
- {
- GetMethod method = new GetMethod("http://localhost:8080/basic-integration-test/basic/should/accept");
- int status = client.executeMethod(method);
- Assert.assertEquals(HttpResponseCodes.SC_OK, status);
- Assert.assertEquals("Wild", method.getResponseBodyAsString());
- method.releaseConnection();
- }
- {
- GetMethod method = new GetMethod("http://localhost:8080/basic-integration-test/uriParam");
- int status = client.executeMethod(method);
- Assert.assertEquals(HttpResponseCodes.SC_OK, status);
- Assert.assertEquals("Wild", method.getResponseBodyAsString());
- method.releaseConnection();
- }
}
@Test
@@ -51,27 +51,6 @@ public void testNoDefaultsResource() throws Exception
Assert.assertEquals("1234", method.getResponseBodyAsString());
method.releaseConnection();
}
- {
- GetMethod method = new GetMethod("http://localhost:8080/ejb-test-war/should/accept/anything");
- int status = client.executeMethod(method);
- Assert.assertEquals(HttpResponseCodes.SC_OK, status);
- Assert.assertEquals("Wild", method.getResponseBodyAsString());
- method.releaseConnection();
- }
- {
- GetMethod method = new GetMethod("http://localhost:8080/ejb-test-war/basic/should/accept");
- int status = client.executeMethod(method);
- Assert.assertEquals(HttpResponseCodes.SC_OK, status);
- Assert.assertEquals("Wild", method.getResponseBodyAsString());
- method.releaseConnection();
- }
- {
- GetMethod method = new GetMethod("http://localhost:8080/ejb-test-war/uriParam");
- int status = client.executeMethod(method);
- Assert.assertEquals(HttpResponseCodes.SC_OK, status);
- Assert.assertEquals("Wild", method.getResponseBodyAsString());
- method.releaseConnection();
- }
}
@Test
@@ -17,11 +17,6 @@
public interface SimpleResource
{
@GET
- @Path("*")
- @ProduceMime("text/plain")
- String getWild();
-
- @GET
@Path("basic")
@ProduceMime("text/plain")
String getBasic();
@@ -17,11 +17,6 @@
@Stateless
public class SimpleResourceBean implements SimpleResource
{
- public String getWild()
- {
- return "Wild";
- }
-
public String getBasic()
{
System.out.println("getBasic()");
@@ -16,15 +16,6 @@
@Path("/")
public class SimpleResource
{
-
- @GET
- @Path("*")
- @ProduceMime("text/plain")
- public String getWild()
- {
- return "Wild";
- }
-
@GET
@Path("basic")
@ProduceMime("text/plain")
@@ -51,27 +51,6 @@ public void testNoDefaultsResource() throws Exception
Assert.assertEquals("1234", method.getResponseBodyAsString());
method.releaseConnection();
}
- {
- GetMethod method = new GetMethod("http://localhost:8080/spring-integration-test/should/accept/anything");
- int status = client.executeMethod(method);
- Assert.assertEquals(HttpResponseCodes.SC_OK, status);
- Assert.assertEquals("Wild", method.getResponseBodyAsString());
- method.releaseConnection();
- }
- {
- GetMethod method = new GetMethod("http://localhost:8080/spring-integration-test/basic/should/accept");
- int status = client.executeMethod(method);
- Assert.assertEquals(HttpResponseCodes.SC_OK, status);
- Assert.assertEquals("Wild", method.getResponseBodyAsString());
- method.releaseConnection();
- }
- {
- GetMethod method = new GetMethod("http://localhost:8080/spring-integration-test/uriParam");
- int status = client.executeMethod(method);
- Assert.assertEquals(HttpResponseCodes.SC_OK, status);
- Assert.assertEquals("Wild", method.getResponseBodyAsString());
- method.releaseConnection();
- }
}
@Test

0 comments on commit ab927ea

Please sign in to comment.