use of com.seleniumtests.connectors.tms.squash.entities.Iteration in project seleniumRobot by bhecquet.
the class TestIterationTestPlanItem method testCreateIterationTestPlanItemWithError.
@Test(groups = { "ut" }, expectedExceptions = ScenarioException.class)
public void testCreateIterationTestPlanItemWithError() {
RequestBodyEntity postRequest = (RequestBodyEntity) createServerMock("POST", "/iterations/4/test-plan", 200, "{}", "requestBodyEntity");
when(postRequest.asJson()).thenThrow(UnirestException.class);
Iteration iteration = new Iteration("http://localhost:8080/api/rest/latest/iterations/4", 4, "my_iteration");
IterationTestPlanItem.create(iteration, new TestCase(25, "http://localhost:8080/api/rest/latest/test-cases/25"));
}
Aggregations