+htp allow creation of custom Parameters, FormFields, PathMatchers, Unmarshallers, and RequestVals
This commit is contained in:
parent
44969d3e46
commit
318ad0a849
8 changed files with 111 additions and 9 deletions
|
|
@ -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!");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue