Skip to content

Commit

Permalink
Reorganization of testing utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
bitstorm committed Dec 9, 2016
1 parent 4c58e21 commit 7db9203
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
*/
package org.wicketstuff.rest.utils.test;

import java.util.Locale;

import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.util.tester.WicketTestCase;
import org.wicketstuff.rest.utils.http.HttpMethod;

/**
*
Expand All @@ -30,17 +28,12 @@
*/
public class RestTestCase extends WicketTestCase
{

@Override
protected RestWicketTester newWicketTester(WebApplication app)
protected void assertUrlResponse(final String url, final HttpMethod httpMethod,
final String expectedResponse)
{
return new RestWicketTester(app)
{
@Override
protected Locale servletRequestLocale()
{
return Locale.US;
}
};
tester.getRequest().setMethod(httpMethod.getMethod());
tester.executeUrl(url);

assertEquals(expectedResponse, tester.getLastResponseAsString());
}
}

This file was deleted.

0 comments on commit 7db9203

Please sign in to comment.