From a3fcfc5d2aeb1bf6b52618c861d22c944e882fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Mon, 26 Oct 2020 09:49:28 +0100 Subject: [PATCH] Add SAM conversion example for MockMvcResultHandlersDsl.handle() See gh-23757 --- .../springframework/test/web/servlet/MockMvcExtensionsTests.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-test/src/test/kotlin/org/springframework/test/web/servlet/MockMvcExtensionsTests.kt b/spring-test/src/test/kotlin/org/springframework/test/web/servlet/MockMvcExtensionsTests.kt index 9729c10ec96..6324f197e64 100644 --- a/spring-test/src/test/kotlin/org/springframework/test/web/servlet/MockMvcExtensionsTests.kt +++ b/spring-test/src/test/kotlin/org/springframework/test/web/servlet/MockMvcExtensionsTests.kt @@ -80,6 +80,9 @@ class MockMvcExtensionsTests { match(matcher) }.andDo { handle(handler) + handle { + matcherInvoked = true + } } assertThat(matcherInvoked).isTrue() assertThat(handlerInvoked).isTrue()