use of spark.util.SparkTestUtil.UrlResponse in project spark by perwendel.
the class GenericSecureIntegrationTest method testPatch.
@Test
public void testPatch() throws Exception {
UrlResponse response = testUtil.doMethodSecure("PATCH", "/patcher", "Fo shizzy");
LOGGER.info(response.body);
Assert.assertEquals(200, response.status);
Assert.assertTrue(response.body.contains("Fo shizzy"));
}
use of spark.util.SparkTestUtil.UrlResponse in project spark by perwendel.
the class GenericSecureIntegrationTest method testEchoParamWithMaj.
@Test
public void testEchoParamWithMaj() throws Exception {
UrlResponse response = testUtil.doMethodSecure("GET", "/paramwithmaj/plop", null);
Assert.assertEquals(200, response.status);
Assert.assertEquals("echo: plop", response.body);
}
use of spark.util.SparkTestUtil.UrlResponse in project spark by perwendel.
the class GenericSecureIntegrationTest method testEchoParam2.
@Test
public void testEchoParam2() throws Exception {
UrlResponse response = testUtil.doMethodSecure("GET", "/gunit", null);
Assert.assertEquals(200, response.status);
Assert.assertEquals("echo: gunit", response.body);
}
use of spark.util.SparkTestUtil.UrlResponse in project spark by perwendel.
the class GenericSecureIntegrationTest method testHiHead.
@Test
public void testHiHead() throws Exception {
UrlResponse response = testUtil.doMethodSecure("HEAD", "/hi", null);
Assert.assertEquals(200, response.status);
Assert.assertEquals("", response.body);
}
use of spark.util.SparkTestUtil.UrlResponse in project spark by perwendel.
the class GenericSecureIntegrationTest method testEchoParam1.
@Test
public void testEchoParam1() throws Exception {
UrlResponse response = testUtil.doMethodSecure("GET", "/shizzy", null);
Assert.assertEquals(200, response.status);
Assert.assertEquals("echo: shizzy", response.body);
}
Aggregations