Clean up check tests and util tests
[bgpcep.git] / pcep / pcc-mock / src / test / java / org / opendaylight / protocol / pcep / pcc / mock / PCCTriggeredLspResyncTest.java
index ed7bb6c231e846837a3510455c3a6bf6e06d1f19..1c923231e0ecf907a9723bb7dd257461ba20ac28 100644 (file)
@@ -34,23 +34,21 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.iet
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Message;
 
 public class PCCTriggeredLspResyncTest extends PCCMockCommon {
-    private Channel channel;
-
     @Test
     public void testSessionTriggeredLspReSync() throws Exception {
         final TestingSessionListenerFactory factory = new TestingSessionListenerFactory();
         final int lspQuantity = 3;
         final BigInteger numberOflspAndDBv = BigInteger.valueOf(lspQuantity);
 
-        this.channel = createServer(factory, this.remoteAddress, new PCCPeerProposal());
-        PCEPSession session = createPCCSession(numberOflspAndDBv).get();
+        final Channel channel = createServer(factory, this.remoteAddress, new PCCPeerProposal());
+        final PCEPSession session = createPCCSession(numberOflspAndDBv).get();
         assertNotNull(session);
         final TestingSessionListener pceSessionListener = getListener(factory);
         assertNotNull(pceSessionListener);
         checkSynchronizedSession(lspQuantity, pceSessionListener, numberOflspAndDBv);
-        pccSessionListener.onMessage(session, createTriggerLspResync());
+        this.pccSessionListener.onMessage(session, createTriggerLspResync());
         final TestingSessionListener sessionListenerAfterReconnect = getListener(factory);
-        checkResyncSession(Optional.of(lspQuantity), 2, null, numberOflspAndDBv, sessionListenerAfterReconnect);
+        checkResyncSession(Optional.of(lspQuantity), 2, 6, null, numberOflspAndDBv, sessionListenerAfterReconnect);
         channel.close().get();
     }