Code clean up
[bgpcep.git] / pcep / topology-provider / src / test / java / org / opendaylight / bgpcep / pcep / topology / provider / AbstractPCEPSessionTest.java
index 7f9fb8f0779e4f89edd8f117626ec95872ac7c3f..4c755fff6a2f92d5c6c0d32e729ce5ead5793c35 100644 (file)
@@ -118,7 +118,7 @@ public abstract class AbstractPCEPSessionTest<T extends TopologySessionListenerF
                 return channelFuture;
             }
         }).when(this.clientListener).writeAndFlush(any(Notification.class));
-        doReturn(null).when(this.channelFuture).addListener(Mockito.<GenericFutureListener<? extends Future<? super Void>>>any());
+        doReturn(null).when(this.channelFuture).addListener(Mockito.any());
         doReturn("TestingChannel").when(this.clientListener).toString();
         doReturn(this.pipeline).when(this.clientListener).pipeline();
         doReturn(this.pipeline).when(this.pipeline).replace(any(ChannelHandler.class), any(String.class), any(ChannelHandler.class));