Do not use OpenflowProtocolListener in ConnectionAdapter
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / connection / listener / OpenflowProtocolListenerInitialImplTest.java
index 7efa4e79561a1b9c3a9ad61b07627af1ac2f90d2..07f63b82cc8244c5923af916a99b3be80b60b15f 100644 (file)
@@ -59,7 +59,7 @@ public class OpenflowProtocolListenerInitialImplTest {
     public void testOnEchoRequestMessage() {
         when(connectionAdapter.echoReply(any())).thenReturn(Futures.immediateFuture(null));
 
-        openflowProtocolListenerInitial.onEchoRequestMessage(
+        openflowProtocolListenerInitial.onEchoRequest(
             new EchoRequestMessageBuilder()
                 .setXid(Uint32.valueOf(42))
                 .setVersion(EncodeConstants.OF_VERSION_1_3)
@@ -70,10 +70,10 @@ public class OpenflowProtocolListenerInitialImplTest {
 
     @Test
     public void testOnHelloMessage() {
-        HelloMessageBuilder helloMessageBld = new HelloMessageBuilder()
-                .setXid(Uint32.valueOf(42))
-                .setVersion(EncodeConstants.OF_VERSION_1_3);
-        openflowProtocolListenerInitial.onHelloMessage(helloMessageBld.build());
+        openflowProtocolListenerInitial.onHello(new HelloMessageBuilder()
+            .setXid(Uint32.valueOf(42))
+            .setVersion(EncodeConstants.OF_VERSION_1_3)
+            .build());
 
         verify(handshakeManager).shake(any());
     }