@ -7367,7 +7367,7 @@ no other expectations will be asserted.
@@ -7367,7 +7367,7 @@ no other expectations will be asserted.
import org.springframework.test.web.servlet.get
mockMvc.get("/accounts/1").andExpect {
status().isOk()
status { isOk() }
}
----
@ -7415,7 +7415,7 @@ The following test asserts that binding or validation failed:
@@ -7415,7 +7415,7 @@ The following test asserts that binding or validation failed:
import org.springframework.test.web.servlet.post
mockMvc.post("/persons").andExpect {
status().isOk()
status { isOk() }
model {
attributeHasErrors("person")
}
@ -7443,7 +7443,7 @@ request. You can do so as follows, where `print()` is a static import from
@@ -7443,7 +7443,7 @@ request. You can do so as follows, where `print()` is a static import from
mockMvc.post("/persons").andDo {
print()
}.andExpect {
status().isOk()
status { isOk() }
model {
attributeHasErrors("person")
}
@ -7473,7 +7473,7 @@ other expectations, as the following example shows:
@@ -7473,7 +7473,7 @@ other expectations, as the following example shows: