use of org.doctester.testbrowser.Response in project ninja by ninjaframework.
the class ApplicationControllerTest method testDevAndTestMode012.
@Test
public void testDevAndTestMode012() {
// Server runs in Test mode. This route is Dev & Test.
Response response = makeRequest(Request.GET().url(testServerUrl().path("/0/1/2/mode/dev/and/test")));
Assert.assertThat(response.payload, CoreMatchers.equalTo("dev and test works."));
}
use of org.doctester.testbrowser.Response in project ninja by ninjaframework.
the class ApplicationControllerTest method testDelete.
@Test
public void testDelete() {
Response response = makeRequest(Request.DELETE().url(testServerUrl().path("/base/middle/app/delete")));
Assert.assertThat(response.payload, CoreMatchers.equalTo("delete works."));
}
use of org.doctester.testbrowser.Response in project ninja by ninjaframework.
the class ApplicationControllerTest method testPost012.
@Test
public void testPost012() {
Response response = makeRequest(Request.POST().url(testServerUrl().path("/0/1/2/post")));
Assert.assertThat(response.payload, CoreMatchers.equalTo("post works."));
}
use of org.doctester.testbrowser.Response in project ninja by ninjaframework.
the class ApplicationControllerTest method testPut012.
@Test
public void testPut012() {
Response response = makeRequest(Request.PUT().url(testServerUrl().path("/0/1/2/put")));
Assert.assertThat(response.payload, CoreMatchers.equalTo("put works."));
}
use of org.doctester.testbrowser.Response in project ninja by ninjaframework.
the class ApplicationControllerTest method testDevAndTestMode.
@Test
public void testDevAndTestMode() {
// Server runs in Test mode. This route is Dev & Test.
Response response = makeRequest(Request.GET().url(testServerUrl().path("/base/middle/app/mode/dev/and/test")));
Assert.assertThat(response.payload, CoreMatchers.equalTo("dev and test works."));
}
Aggregations