Fix Generics in ReactorContextTestExecutionListenerTests for JDK 9+

Issue: gh-6075
This commit is contained in:
Rob Winch 2018-11-30 12:07:58 -06:00
parent a28c677f88
commit 1a80d4a66c
1 changed files with 2 additions and 1 deletions

View File

@ -181,7 +181,8 @@ public class ReactorContextTestExecutionListenerTests {
Hooks.onLastOperator("CUSTOM_HOOK", p -> Mono.just(obj));
this.listener.afterTestMethod(this.testContext);
assertThat(Mono.subscriberContext().block()).isEqualTo(obj);
Object result = Mono.subscriberContext().block();
assertThat(result).isEqualTo(obj);
}
@Test