From 4fd17e4c2e5442097106c9ef9ccd32e0e40fe878 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 30 Aug 2017 14:25:40 -0500 Subject: [PATCH] Fix ReactorContext after changes to Reactor --- .../support/ReactorContextTestExecutionListenerTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/src/test/java/org/springframework/security/test/context/support/ReactorContextTestExecutionListenerTests.java b/test/src/test/java/org/springframework/security/test/context/support/ReactorContextTestExecutionListenerTests.java index 83f5a595c0..2b4ab8220d 100644 --- a/test/src/test/java/org/springframework/security/test/context/support/ReactorContextTestExecutionListenerTests.java +++ b/test/src/test/java/org/springframework/security/test/context/support/ReactorContextTestExecutionListenerTests.java @@ -59,7 +59,7 @@ public class ReactorContextTestExecutionListenerTests { public void beforeTestMethodWhenSecurityContextEmptyThenReactorContextNull() throws Exception { listener.beforeTestMethod(testContext); - assertThat(Mono.currentContext().block()).isNull(); + assertThat(Mono.currentContext().block().isEmpty()).isTrue(); } @Test @@ -68,7 +68,7 @@ public class ReactorContextTestExecutionListenerTests { listener.beforeTestMethod(testContext); - assertThat(Mono.currentContext().block()).isNull(); + assertThat(Mono.currentContext().block().isEmpty()).isTrue(); } @@ -97,7 +97,7 @@ public class ReactorContextTestExecutionListenerTests { listener.afterTestMethod(testContext); - assertThat(Mono.currentContext().block()).isNull(); + assertThat(Mono.currentContext().block().isEmpty()).isTrue(); } @Test