|
@@ -59,7 +59,7 @@ public class ReactorContextTestExecutionListenerTests {
|
|
public void beforeTestMethodWhenSecurityContextEmptyThenReactorContextNull() throws Exception {
|
|
public void beforeTestMethodWhenSecurityContextEmptyThenReactorContextNull() throws Exception {
|
|
listener.beforeTestMethod(testContext);
|
|
listener.beforeTestMethod(testContext);
|
|
|
|
|
|
- assertThat(Mono.currentContext().block()).isNull();
|
|
|
|
|
|
+ assertThat(Mono.currentContext().block().isEmpty()).isTrue();
|
|
}
|
|
}
|
|
|
|
|
|
@Test
|
|
@Test
|
|
@@ -68,7 +68,7 @@ public class ReactorContextTestExecutionListenerTests {
|
|
|
|
|
|
listener.beforeTestMethod(testContext);
|
|
listener.beforeTestMethod(testContext);
|
|
|
|
|
|
- assertThat(Mono.currentContext().block()).isNull();
|
|
|
|
|
|
+ assertThat(Mono.currentContext().block().isEmpty()).isTrue();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -97,7 +97,7 @@ public class ReactorContextTestExecutionListenerTests {
|
|
|
|
|
|
listener.afterTestMethod(testContext);
|
|
listener.afterTestMethod(testContext);
|
|
|
|
|
|
- assertThat(Mono.currentContext().block()).isNull();
|
|
|
|
|
|
+ assertThat(Mono.currentContext().block().isEmpty()).isTrue();
|
|
}
|
|
}
|
|
|
|
|
|
@Test
|
|
@Test
|