예제 #1
0
 @Test
 public void testPipelineWithTwoTransformers() throws Exception {
   HttpAction<HttpGet> action = get("/test.two");
   assertEquals(200, action.getResponse().getStatusLine().getStatusCode());
   assertEquals("THIS IS BAR", action.getResponseContent());
 }
예제 #2
0
 @Test
 public void testPipelineWithOneTransformer() throws Exception {
   HttpAction<HttpGet> action = get("/test.one");
   assertEquals(200, action.getResponse().getStatusLine().getStatusCode());
   assertEquals("this is bar", action.getResponseContent());
 }