Replace slf4j-log4j12
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / connection / ConnectionContextImplTest.java
index 42c89b5f99934fe066ae45b71c07ffd9072e1bca..abd6fbe6ff4fb9dbd28bf2eb920c01693b4e4527 100644 (file)
@@ -8,7 +8,6 @@
 
 package org.opendaylight.openflowplugin.impl.connection;
 
-import java.net.InetSocketAddress;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -48,8 +47,6 @@ public class ConnectionContextImplTest {
 
     @Before
     public void setUp() {
-        Mockito.when(connetionAdapter.getRemoteAddress())
-                .thenReturn(InetSocketAddress.createUnresolved("ofp-ut.example.org", 4242));
         Mockito.when(connetionAdapter.isAlive()).thenReturn(true);
 
         connectionContext = new ConnectionContextImpl(connetionAdapter, deviceConnectionStatusProvider);
@@ -110,4 +107,4 @@ public class ConnectionContextImplTest {
         connectionContext.changeStateToWorking();
         Assert.assertEquals(ConnectionContext.CONNECTION_STATE.WORKING, connectionContext.getConnectionState());
     }
-}
\ No newline at end of file
+}