BUG-6647 Increase code coverage and clean up II
[bgpcep.git] / pcep / impl / src / test / java / org / opendaylight / protocol / pcep / impl / PCEPDispatcherImplTest.java
index 7eb1a68d61efc1d1049a6098547bafefe72a4fde..69c40aa8a96c21a79274d1d01d3f8685b2ceff8e 100755 (executable)
@@ -19,7 +19,6 @@ import io.netty.channel.epoll.EpollEventLoopGroup;
 import io.netty.channel.nio.NioEventLoopGroup;
 import io.netty.channel.socket.SocketChannel;
 import io.netty.channel.socket.nio.NioSocketChannel;
-import io.netty.util.concurrent.DefaultPromise;
 import io.netty.util.concurrent.EventExecutor;
 import io.netty.util.concurrent.Future;
 import io.netty.util.concurrent.GlobalEventExecutor;
@@ -80,8 +79,7 @@ public class PCEPDispatcherImplTest {
         this.disp2Spy = Mockito.spy(dispatcher2);
 
         this.pccMock = new PCCMock(new DefaultPCEPSessionNegotiatorFactory(sessionProposal, 0),
-                new PCEPHandlerFactory(msgReg), new DefaultPromise<PCEPSessionImpl>(
-                        GlobalEventExecutor.INSTANCE));
+                new PCEPHandlerFactory(msgReg));
     }
 
     @Test
@@ -188,11 +186,8 @@ public class PCEPDispatcherImplTest {
         private final PCEPHandlerFactory factory;
         private final EventExecutor executor;
         private final EventLoopGroup workerGroup;
-        private final EventLoopGroup bossGroup;
 
-        public PCCMock(final PCEPSessionNegotiatorFactory negotiatorFactory, final PCEPHandlerFactory factory,
-                final DefaultPromise<PCEPSessionImpl> defaultPromise) {
-            this.bossGroup = Preconditions.checkNotNull(new NioEventLoopGroup());
+        public PCCMock(final PCEPSessionNegotiatorFactory negotiatorFactory, final PCEPHandlerFactory factory) {
             this.workerGroup = Preconditions.checkNotNull(new NioEventLoopGroup());
             this.negotiatorFactory = Preconditions.checkNotNull(negotiatorFactory);
             this.factory = Preconditions.checkNotNull(factory);