BAEL-9041 fixed formatting

This commit is contained in:
Dhawal Kapil 2018-10-31 09:06:48 +05:30
parent 9b743a9034
commit e37dd4adc4

View File

@ -31,7 +31,7 @@ public class RestAssured2IntegrationTest {
configureFor("localhost", PORT); configureFor("localhost", PORT);
RestAssured.port = PORT; RestAssured.port = PORT;
stubFor(get(urlEqualTo(EVENTS_PATH)).willReturn( stubFor(get(urlEqualTo(EVENTS_PATH)).willReturn(
aResponse().withStatus(200) aResponse().withStatus(200)
.withHeader("Content-Type", APPLICATION_JSON) .withHeader("Content-Type", APPLICATION_JSON)
.withBody(ODDS))); .withBody(ODDS)));
stubFor(post(urlEqualTo("/odds/new")) stubFor(post(urlEqualTo("/odds/new"))
@ -42,7 +42,7 @@ public class RestAssured2IntegrationTest {
@Test @Test
public void givenUrl_whenVerifiesOddPricesAccuratelyByStatus_thenCorrect() { public void givenUrl_whenVerifiesOddPricesAccuratelyByStatus_thenCorrect() {
get("/odds").then().body("odds.findAll { it.status > 0 }.price", get("/odds").then().body("odds.findAll { it.status > 0 }.price",
hasItems(5.25f, 1.2f)); hasItems(5.25f, 1.2f));
} }
@Test @Test
@ -56,7 +56,7 @@ public class RestAssured2IntegrationTest {
private static String getJson() { private static String getJson() {
return Util.inputStreamToString(RestAssured2IntegrationTest.class return Util.inputStreamToString(RestAssured2IntegrationTest.class
.getResourceAsStream("/odds.json")); .getResourceAsStream("/odds.json"));
} }
@AfterClass @AfterClass