BUG-58: refactor to take advantage of netty
[bgpcep.git] / pcep / testtool / src / test / java / org / opendaylight / protocol / pcep / testtool / PCEPTestingToolTest.java
index 5a031324a6b69383e82c5cdc2090a4408ff5f350..762fc765bddf815a447a3b88872fe6777ea54aa7 100644 (file)
@@ -12,7 +12,6 @@ import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
 import org.junit.Test;
-
 import org.opendaylight.protocol.pcep.message.PCEPKeepAliveMessage;
 
 public class PCEPTestingToolTest {
@@ -25,14 +24,14 @@ public class PCEPTestingToolTest {
                assertEquals(1, ssl.messages.size());
                assertTrue(ssl.messages.get(0) instanceof PCEPKeepAliveMessage);
                assertFalse(ssl.up);
-               ssl.onSessionUp(null, null, null);
+               ssl.onSessionUp(null);
                assertTrue(ssl.up);
-               ssl.onSessionDown(null, null, null);
+               ssl.onSessionDown(null, null);
                assertFalse(ssl.up);
        }
 
        @Test
        public void testSessionListenerFactory() {
-               assertTrue(new SessionListenerFactory().getSessionListener(null) instanceof SimpleSessionListener);
+               assertTrue(new SessionListenerFactory().getSessionListener() instanceof SimpleSessionListener);
        }
 }