Browse Source

Fix ReactorContext after changes to Reactor

Rob Winch 8 years ago
parent
commit
4fd17e4c2e

+ 3 - 3
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