Fix drop-test-karaf service injection
[openflowplugin.git] / test-common / src / main / java / org / opendaylight / openflowplugin / testcommon / AbstractDropTest.java
index d7703b5e6c505b037ed97bb8e056ef16d1cc06a8..0b00f2e782300b68e2773636abadcecbdf7fc343 100644 (file)
@@ -44,7 +44,7 @@ import org.opendaylight.yangtools.yang.common.Uint8;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-abstract class AbstractDropTest implements Listener<PacketReceived>, AutoCloseable {
+abstract class AbstractDropTest implements Listener<PacketReceived>, AutoCloseable, DropTest {
     private static final Logger LOG = LoggerFactory.getLogger(AbstractDropTest.class);
 
     protected static final Uint16 PRIORITY = Uint16.valueOf(4);
@@ -86,6 +86,7 @@ abstract class AbstractDropTest implements Listener<PacketReceived>, AutoCloseab
             .newUpdater(AbstractDropTest.class, "runablesRejected");
     protected volatile int runablesRejected;
 
+    @Override
     public final DropTestStats getStats() {
         return new DropTestStats(sent, rcvd, excs, ftrFailed, ftrSuccess, runablesExecuted, runablesRejected);
     }
@@ -107,6 +108,7 @@ abstract class AbstractDropTest implements Listener<PacketReceived>, AutoCloseab
         executorService = threadPool;
     }
 
+    @Override
     public final void clearStats() {
         sent = 0;
         rcvd = 0;