Skip to content

Commit e3e9758

Browse files
committed
Fix Generics in ReactorContextTestExecutionListenerTests for JDK 9+
Issue: gh-6075
1 parent 46012d6 commit e3e9758

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

Lines changed: 2 additions & 1 deletion
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)