Sync docs from 1.0.x to gh-pages

This commit is contained in:
buildmaster
2017-02-27 08:55:27 +00:00
parent f0c73bd0e9
commit e60c8f86ea

View File

@@ -1114,7 +1114,7 @@ public class ApplicationTests {
public void contextLoads() throws Exception {
mockMvc.perform(post("/resource")
.content("{\"id\":\"123456\",\"message\":\"Hello World\"}"))
.andExpect(status.isOk())
.andExpect(status().isOk())
.andDo(verify().jsonPath("$.id")
.stub("resource"));
}
@@ -1139,7 +1139,7 @@ created stub. Example:</p>
public void contextLoads() throws Exception {
mockMvc.perform(post("/resource")
.content("{\"id\":\"123456\",\"message\":\"Hello World\"}"))
.andExpect(status.isOk())
.andExpect(status().isOk())
.andDo(verify()
.wiremock(WireMock.post(
urlPathEquals("/resource"))