Upgraded Rest Assured to 4.0.0; fixes gh-1122

This commit is contained in:
Marcin Grzejszczak
2019-07-02 14:50:20 +02:00
parent 59d3f0d075
commit b48dd4905f
10 changed files with 136 additions and 21 deletions

View File

@@ -57,14 +57,14 @@ public class WiremockServerRestAssuredApplicationTests {
@Test
public void contextLoads() throws Exception {
given().port(this.port).when().get("/resource").then().assertThat()
.statusCode(is(200)).content(equalTo("Hello World"));
.statusCode(is(200)).body(equalTo("Hello World"));
}
@Test
public void statusIsMaintained() throws Exception {
given(this.documentationSpec.port(this.port)).filter(document("status")).when()
.get("/status").then().assertThat().statusCode(is(202))
.content(equalTo("Hello World"));
.body(equalTo("Hello World"));
}
@Configuration