use of com.seleniumtests.connectors.tms.squash.entities.Project in project seleniumRobot by bhecquet.
the class TestProject method testGetCampaignsInProjectWithError.
@Test(groups = { "ut" }, expectedExceptions = ScenarioException.class)
public void testGetCampaignsInProjectWithError() {
GetRequest getRequest = (GetRequest) createServerMock("GET", "/projects/44/campaigns", 200, "{}", "request");
when(getRequest.asPaged(any(), (Function<HttpResponse<JsonNode>, String>) any(Function.class))).thenThrow(UnirestException.class);
Project project = new Project("http://localhost:4321/projects/44", 44, "project");
List<Campaign> campaigns = project.getCampaigns();
}
Aggregations