Upgraded Rest Assured to 4.0.0; fixes gh-1122
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user