use of com.coveros.selenified.services.Response in project selenified by Coveros.
the class OutputFileTest method formatResponseEmptyObjectTest.
@Test
public void formatResponseEmptyObjectTest() {
JsonObject json = new JsonObject();
Response response = new Response(0, json, null);
Assert.assertEquals(outputFile.formatResponse(response), "<div><i>{}</i></div>");
}
use of com.coveros.selenified.services.Response in project selenified by Coveros.
the class OutputFileTest method formatResponseNullNullTest.
@Test
public void formatResponseNullNullTest() {
JsonObject json = new JsonObject();
Response response = new Response(0, json, null);
response.setObjectData(null);
Assert.assertEquals(outputFile.formatResponse(response), "");
}
use of com.coveros.selenified.services.Response in project selenified by Coveros.
the class OutputFileTest method formatResponseEmptyArrayTest.
@Test
public void formatResponseEmptyArrayTest() {
JsonArray json = new JsonArray();
Response response = new Response(0, json, null);
Assert.assertEquals(outputFile.formatResponse(response), "<div><i>[]</i></div>");
}
use of com.coveros.selenified.services.Response in project selenified by Coveros.
the class ResponseTest method checkNewResponseArrayObjectTest.
@Test
public void checkNewResponseArrayObjectTest() {
JsonArray json = new JsonArray();
Response response = new Response(5, json, "");
Assert.assertNull(response.getObjectData());
}
use of com.coveros.selenified.services.Response in project selenified by Coveros.
the class ResponseTest method checkNewResponseCodeMessageTest.
@Test
public void checkNewResponseCodeMessageTest() {
Response response = new Response(5);
Assert.assertNull(response.getMessage());
}
Aggregations