From 4a976faea3a28dbaadc11109d03421b8385b0e13 Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Thu, 13 Jan 2022 13:53:04 -0300 Subject: [PATCH] Fix remaining failing tests Issue gh-10702 --- .../security/config/web/server/ServerJwtDslTests.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/config/src/test/kotlin/org/springframework/security/config/web/server/ServerJwtDslTests.kt b/config/src/test/kotlin/org/springframework/security/config/web/server/ServerJwtDslTests.kt index 57dcc80161..5d19857e66 100644 --- a/config/src/test/kotlin/org/springframework/security/config/web/server/ServerJwtDslTests.kt +++ b/config/src/test/kotlin/org/springframework/security/config/web/server/ServerJwtDslTests.kt @@ -247,7 +247,7 @@ class ServerJwtDslTests { open class CustomJwtAuthenticationConverterConfig { companion object { - val CONVERTER: Converter> = Converter { Mono.empty() } + val CONVERTER: Converter> = NullConverter() val DECODER: ReactiveJwtDecoder = NullReactiveJwtDecoder() } @@ -269,6 +269,13 @@ class ServerJwtDslTests { open fun jwtDecoder(): ReactiveJwtDecoder = DECODER } + class NullConverter: Converter> { + override fun convert(source: Jwt): Mono? { + return Mono.empty() + } + + } + @RestController internal class BaseController { @GetMapping