Browse Source

Add SAM conversion example for MockMvcResultHandlersDsl.handle()

See gh-23757
pull/25991/head
Sébastien Deleuze 5 years ago
parent
commit
a3fcfc5d2a
  1. 3
      spring-test/src/test/kotlin/org/springframework/test/web/servlet/MockMvcExtensionsTests.kt

3
spring-test/src/test/kotlin/org/springframework/test/web/servlet/MockMvcExtensionsTests.kt

@ -80,6 +80,9 @@ class MockMvcExtensionsTests { @@ -80,6 +80,9 @@ class MockMvcExtensionsTests {
match(matcher)
}.andDo {
handle(handler)
handle {
matcherInvoked = true
}
}
assertThat(matcherInvoked).isTrue()
assertThat(handlerInvoked).isTrue()

Loading…
Cancel
Save