@ -1368,7 +1368,7 @@ The following example shows the corresponding `ExampleBean` class:
@@ -1368,7 +1368,7 @@ The following example shows the corresponding `ExampleBean` class:
@ -9594,7 +9594,7 @@ of creating a custom composed annotation. The following example defines a custom
@@ -9594,7 +9594,7 @@ of creating a custom composed annotation. The following example defines a custom
@ -2522,7 +2522,7 @@ listeners. The following listing demonstrates this style of configuration:
@@ -2522,7 +2522,7 @@ listeners. The following listing demonstrates this style of configuration:
@ -7366,7 +7366,7 @@ no other expectations will be asserted.
@@ -7366,7 +7366,7 @@ no other expectations will be asserted.
import org.springframework.test.web.servlet.get
mockMvc.get("/accounts/1").andExpect {
status().isOk()
status { isOk() }
}
----
@ -7414,7 +7414,7 @@ The following test asserts that binding or validation failed:
@@ -7414,7 +7414,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")
}
@ -7442,7 +7442,7 @@ request. You can do so as follows, where `print()` is a static import from
@@ -7442,7 +7442,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")
}
@ -7472,7 +7472,7 @@ other expectations, as the following example shows:
@@ -7472,7 +7472,7 @@ other expectations, as the following example shows: