use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulPatchCallJsonArrayMultipartTrueData.
@Test(groups = { "integration", "service", "httppatch", "response" }, description = "An integration test to verify a successful patch call with parameters")
public void verifySuccessfulPatchCallJsonArrayMultipartTrueData() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
Map<String, Object> headers = new HashMap<>();
headers.put("Content-Type", "multipart/form-data;");
call.addHeaders(headers);
call.patch("post/4", new Request().setJsonPayload(new JsonArray()).setMultipartData(new HashMap<>())).verifyEquals().message("");
// verify no issues
finish();
}
use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulPostCallNoDataWithFile.
@Test(groups = { "integration", "service", "httppost", "response" }, description = "An integration test to verify a successful post call with parameters")
public void verifySuccessfulPostCallNoDataWithFile() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.post("post/4", new Request(), new File("Jenkinsfile")).verifyEquals().objectData(simJson4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulDeleteCallJsonObjectMultipartTrueData.
@Test(groups = { "integration", "service", "httpdelete", "response" }, description = "An integration test to verify a successful delete call with parameters")
public void verifySuccessfulDeleteCallJsonObjectMultipartTrueData() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
Map<String, Object> headers = new HashMap<>();
headers.put("Content-Type", "multipart/form-data;");
call.addHeaders(headers);
call.delete("post/4", new Request().setJsonPayload(new JsonObject()).setMultipartData(new HashMap<>())).verifyEquals().objectData(simJson4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulPatchCallJsonObjectDataWithFile.
@Test(groups = { "integration", "service", "httppatch", "response" }, description = "An integration test to verify a successful patch call with parameters")
public void verifySuccessfulPatchCallJsonObjectDataWithFile() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.patch("post/4", new Request().setJsonPayload(new JsonObject()), new File("Jenkinsfile")).verifyEquals().message("");
// verify no issues
finish();
}
use of com.coveros.selenified.services.Request in project selenified by Coveros.
the class ServicesIT method verifySuccessfulDeleteCallJsonObjectDataWithFile.
@Test(groups = { "integration", "service", "httpdelete", "response" }, description = "An integration test to verify a successful delete call with parameters")
public void verifySuccessfulDeleteCallJsonObjectDataWithFile() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.delete("post/4", new Request().setJsonPayload(new JsonObject()), new File("Jenkinsfile")).verifyEquals().objectData(simJson4);
// verify no issues
finish();
}
Aggregations