use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertJsonMessageMessageNull.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response", expectedExceptions = AssertionError.class)
public void assertJsonMessageMessageNull() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
Response response = call.get("/null/");
response.assertEquals().message("Something");
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertJsonCrumbsEmpty.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void assertJsonCrumbsEmpty() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("posts/?id=4").assertEquals().nestedValue(new ArrayList<>(), json4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method negativeSuccessfulGetCall.
// negative checks for assert equals
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify response code negative responses", expectedExceptions = AssertionError.class)
public void negativeSuccessfulGetCall() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("posts/").assertEquals().code(201);
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertNestArraySizeBad.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response", expectedExceptions = AssertionError.class)
public void assertNestArraySizeBad() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
Response response = call.get("ids/");
response.assertEquals().nestedArraySize(Collections.singletonList("ids"), 3);
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertArraySizeEmpty.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void assertArraySizeEmpty() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
Response response = call.get("empty/");
response.assertEquals().arraySize(0);
// verify no issues
finish();
}
Aggregations