+htp allow creation of custom Parameters, FormFields, PathMatchers, Unmarshallers, and RequestVals

This commit is contained in:
Johannes Rudolph 2015-07-10 19:12:15 +02:00
parent 44969d3e46
commit 318ad0a849
8 changed files with 111 additions and 9 deletions

View file

@ -28,4 +28,13 @@ public class SimpleServerTest extends JUnitRouteTest {
.assertStatusCode(200)
.assertEntity("42 * 23 = 966");
}
@Test
public void testPostWithBody() {
TestResponse response = route.run(HttpRequest.POST("/hello").withEntity("John"));
response
.assertStatusCode(200)
.assertEntity("Hello John!");
}
}