Skip to content

Commit 1a80d4a

Browse files
committed
Fix Generics in ReactorContextTestExecutionListenerTests for JDK 9+
Issue: gh-6075
1 parent a28c677 commit 1a80d4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/src/test/java/org/springframework/security/test/context/support/ReactorContextTestExecutionListenerTests.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ public void afterTestMethodWhenDifferentHookIsRegistered() throws Exception {
181181
Hooks.onLastOperator("CUSTOM_HOOK", p -> Mono.just(obj));
182182
this.listener.afterTestMethod(this.testContext);
183183

184-
assertThat(Mono.subscriberContext().block()).isEqualTo(obj);
184+
Object result = Mono.subscriberContext().block();
185+
assertThat(result).isEqualTo(obj);
185186
}
186187

187188
@Test

0 commit comments

Comments
 (0)