Skip to content

Commit

Permalink
wildcard "*" functionality was removed so had to remove test for it i…
Browse files Browse the repository at this point in the history
…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
patriot1burke committed May 2, 2008
1 parent 9498d49 commit ab927ea
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 90 deletions.
Expand Up @@ -17,14 +17,6 @@
public class SimpleResource
{

@GET
@Path("*")
@ProduceMime("text/plain")
public String getWild()
{
return "Wild";
}

@GET
@Path("basic")
@ProduceMime("text/plain")
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -16,11 +16,6 @@
@Path("/")
public interface SimpleResource
{
@GET
@Path("*")
@ProduceMime("text/plain")
String getWild();

@GET
@Path("basic")
@ProduceMime("text/plain")
Expand Down
Expand Up @@ -17,11 +17,6 @@
@Stateless
public class SimpleResourceBean implements SimpleResource
{
public String getWild()
{
return "Wild";
}

public String getBasic()
{
System.out.println("getBasic()");
Expand Down
Expand Up @@ -16,15 +16,6 @@
@Path("/")
public class SimpleResource
{

@GET
@Path("*")
@ProduceMime("text/plain")
public String getWild()
{
return "Wild";
}

@GET
@Path("basic")
@ProduceMime("text/plain")
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit ab927ea

Please sign in to comment.