initial condition - api change in unit tests 41/20741/1
authorMartin Bobak <mbobak@cisco.com>
Sat, 16 May 2015 08:55:10 +0000 (10:55 +0200)
committerMartin Bobak <mbobak@cisco.com>
Tue, 19 May 2015 16:52:49 +0000 (18:52 +0200)
Change-Id: I94306db05a69394c10600a912699e092c01828d2
Signed-off-by: Martin Bobak <mbobak@cisco.com>
openflowplugin/src/test/java/org/opendaylight/openflowplugin/openflow/md/core/plan/ConnectionAdapterStackImpl.java
openflowplugin/src/test/java/org/opendaylight/openflowplugin/openflow/md/core/session/MessageDispatchServiceImplTest.java

index 7dea5b4371395a690c2ea3d21daecf4e86e6ab77..5fbf73590bb88a270bf9922fffa20fb97e1e598f 100644 (file)
@@ -107,6 +107,7 @@ public class ConnectionAdapterStackImpl implements ConnectionAdapter, Runnable {
 
     private boolean autoRead = true;
     private final ExecutorService pool;
+    private boolean packetInFiltering;
 
 
     /**
@@ -656,4 +657,8 @@ public class ConnectionAdapterStackImpl implements ConnectionAdapter, Runnable {
         this.autoRead = autoRead;
     }
 
+    @Override
+    public void setPacketInFiltering(boolean packetInFiltering) {
+        this.packetInFiltering = packetInFiltering;
+    }
 }
index 051ca3bdc3ed241ea78ab8956185574eabd9c327..448fb45ac3d7849739636d116a00a926b0cc42c3 100644 (file)
@@ -16,7 +16,6 @@ import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Set;
 import java.util.concurrent.Future;
-
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -99,7 +98,7 @@ public class MessageDispatchServiceImplTest {
 
     /**
      * Test barrier message for null cookie
-     * 
+     *
      * @throws Exception
      */
     @Test
@@ -226,7 +225,7 @@ public class MessageDispatchServiceImplTest {
 
     /**
      * Test packet out message for primary connection
-     * 
+     *
      * @throws Exception
      */
     @Test
@@ -238,7 +237,7 @@ public class MessageDispatchServiceImplTest {
 
     /**
      * Test packet out message for auxiliary connection
-     * 
+     *
      * @throws Exception
      */
     @Test
@@ -256,7 +255,7 @@ public class MessageDispatchServiceImplTest {
 
     /**
      * Test packet out message when multiple auxiliary connection exist
-     * 
+     *
      * @throws Exception
      */
     @Test
@@ -293,7 +292,7 @@ public class MessageDispatchServiceImplTest {
 
     /**
      * Test for invalid session
-     * 
+     *
      * @throws Exception
      */
     @Test
@@ -600,6 +599,7 @@ class MockConnectionAdapter implements ConnectionAdapter {
 
     private MessageType messageType;
     private ConnectionReadyListener connectionReadyListener;
+    private boolean packetInFiltering;
 
     public MockConnectionAdapter() {
         setMessageType(MessageType.NONE);
@@ -780,7 +780,7 @@ class MockConnectionAdapter implements ConnectionAdapter {
 
     /*
      * (non-Javadoc)
-     * 
+     *
      * @see
      * org.opendaylight.openflowjava.protocol.api.connection.ConnectionAdapter
      * #getRemoteAddress()
@@ -807,4 +807,9 @@ class MockConnectionAdapter implements ConnectionAdapter {
         // TODO Auto-generated method stub
 
     }
+
+    @Override
+    public void setPacketInFiltering(boolean packetInFiltering) {
+        this.packetInFiltering = packetInFiltering;
+    }
 }