initial condition - api change in unit tests
[openflowplugin.git] / openflowplugin / src / test / java / org / opendaylight / openflowplugin / openflow / md / core / PopListenerCountingImpl.java
index 9afdf4e59efc36ac12c571ed6fae52981d8b598f..95e5244070924c8cb532c56c16e0b037206e1585 100644 (file)
@@ -7,7 +7,9 @@
  */
 package org.opendaylight.openflowplugin.openflow.md.core;
 
-import org.opendaylight.openflowplugin.openflow.md.queue.PopListener;
+import org.opendaylight.openflowplugin.api.openflow.md.queue.PopListener;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * @author mirehak
@@ -16,11 +18,14 @@ import org.opendaylight.openflowplugin.openflow.md.queue.PopListener;
  */
 public class PopListenerCountingImpl<T> implements PopListener<T> {
 
+    private static final Logger LOG = LoggerFactory
+            .getLogger(PopListenerCountingImpl.class);
     private int count = 0;
 
     @Override
     public synchronized void onPop(T processedMessage) {
-        count ++;
+        LOG.debug("message popped: {}", processedMessage);
+        count += 1;
         notify();
     }