use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertJsonObjectCorrect.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void assertJsonObjectCorrect() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("posts/?id=4").assertEquals().objectData(json4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertArraySizeBad.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response", expectedExceptions = AssertionError.class)
public void assertArraySizeBad() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
Response response = call.get("posts/");
response.assertEquals().arraySize(3);
// verify 1 issue
finish(1);
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertNestArraySizeNotExist.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void assertNestArraySizeNotExist() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
Response response = call.get("posts/4");
response.assertEquals().nestedArraySize(Collections.singletonList("name"), -1);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertNestArraySizeGood.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response")
public void assertNestArraySizeGood() {
// 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"), 4);
// verify no issues
finish();
}
use of com.coveros.selenified.services.Call in project selenified by Coveros.
the class ServicesResponseAssertEqualsIT method assertJsonArrayIsntObject.
@Test(groups = { "integration", "service", "httpget", "response" }, description = "An integration test to verify json data response", expectedExceptions = AssertionError.class)
public void assertJsonArrayIsntObject() {
// use this object to verify the app looks as expected
Call call = this.calls.get();
// perform some actions
call.get("posts/").assertEquals().objectData(json1);
// verify 1 issue
finish(1);
}
Aggregations