Add SAM conversion example for MockMvcResultHandlersDsl.handle()

See gh-23757
This commit is contained in:
Sébastien Deleuze
2020-10-26 09:49:28 +01:00
parent 1247e4a0e8
commit a3fcfc5d2a

View File

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