@@ -203,8 +203,9 @@ public void clientSecurityHandler_addLast()
203203 sslContextProviderSupplier
204204 .updateSslContext (new SslContextProvider .Callback (MoreExecutors .directExecutor ()) {
205205 @ Override
206- public void updateSslContextAndExtendedX509TrustManager (AbstractMap .SimpleImmutableEntry <SslContext , TrustManager > sslContext ) {
207- future .set (sslContext );
206+ public void updateSslContextAndExtendedX509TrustManager (
207+ AbstractMap .SimpleImmutableEntry <SslContext , TrustManager > sslContextAndTm ) {
208+ future .set (sslContextAndTm );
208209 }
209210
210211 @ Override
@@ -215,7 +216,7 @@ protected void onException(Throwable throwable) {
215216 assertThat (executor .runDueTasks ()).isEqualTo (1 );
216217 channel .runPendingTasks ();
217218 Object fromFuture = future .get (2 , TimeUnit .SECONDS );
218- assertThat (fromFuture ).isInstanceOf (SslContext .class );
219+ assertThat (fromFuture ).isInstanceOf (AbstractMap . SimpleImmutableEntry .class );
219220 channel .runPendingTasks ();
220221 channelHandlerCtx = pipeline .context (clientSecurityHandler );
221222 assertThat (channelHandlerCtx ).isNull ();
@@ -391,8 +392,9 @@ public SocketAddress remoteAddress() {
391392 sslContextProviderSupplier
392393 .updateSslContext (new SslContextProvider .Callback (MoreExecutors .directExecutor ()) {
393394 @ Override
394- public void updateSslContextAndExtendedX509TrustManager (AbstractMap .SimpleImmutableEntry <SslContext , TrustManager > sslContext ) {
395- future .set (sslContext );
395+ public void updateSslContextAndExtendedX509TrustManager (
396+ AbstractMap .SimpleImmutableEntry <SslContext , TrustManager > sslContextAndTm ) {
397+ future .set (sslContextAndTm );
396398 }
397399
398400 @ Override
@@ -403,7 +405,7 @@ protected void onException(Throwable throwable) {
403405 channel .runPendingTasks (); // need this for tasks to execute on eventLoop
404406 assertThat (executor .runDueTasks ()).isEqualTo (1 );
405407 Object fromFuture = future .get (2 , TimeUnit .SECONDS );
406- assertThat (fromFuture ).isInstanceOf (SslContext .class );
408+ assertThat (fromFuture ).isInstanceOf (AbstractMap . SimpleImmutableEntry .class );
407409 channel .runPendingTasks ();
408410 channelHandlerCtx = pipeline .context (SecurityProtocolNegotiators .ServerSecurityHandler .class );
409411 assertThat (channelHandlerCtx ).isNull ();
@@ -529,8 +531,9 @@ public void clientSecurityProtocolNegotiatorNewHandler_fireProtocolNegotiationEv
529531 sslContextProviderSupplier
530532 .updateSslContext (new SslContextProvider .Callback (MoreExecutors .directExecutor ()) {
531533 @ Override
532- public void updateSslContextAndExtendedX509TrustManager (AbstractMap .SimpleImmutableEntry <SslContext , TrustManager > sslContext ) {
533- future .set (sslContext );
534+ public void updateSslContextAndExtendedX509TrustManager (
535+ AbstractMap .SimpleImmutableEntry <SslContext , TrustManager > sslContextAndTm ) {
536+ future .set (sslContextAndTm );
534537 }
535538
536539 @ Override
@@ -541,7 +544,7 @@ protected void onException(Throwable throwable) {
541544 executor .runDueTasks ();
542545 channel .runPendingTasks (); // need this for tasks to execute on eventLoop
543546 Object fromFuture = future .get (5 , TimeUnit .SECONDS );
544- assertThat (fromFuture ).isInstanceOf (SslContext .class );
547+ assertThat (fromFuture ).isInstanceOf (AbstractMap . SimpleImmutableEntry .class );
545548 channel .runPendingTasks ();
546549 channelHandlerCtx = pipeline .context (clientSecurityHandler );
547550 assertThat (channelHandlerCtx ).isNull ();
0 commit comments