Use JobCoordinatorTestModule in aclservice component tests
[netvirt.git] / vpnservice / aclservice / impl / src / test / java / org / opendaylight / netvirt / aclservice / tests / AclServiceStatefulTest.java
index 4516e8e228eddb637bac5e64a907962c1ef15a25..fb00bb6f153be88cba422bc00389cb1a3f36c0a3 100644 (file)
@@ -9,6 +9,7 @@ package org.opendaylight.netvirt.aclservice.tests;
 
 import org.junit.Rule;
 import org.junit.rules.MethodRule;
+import org.opendaylight.genius.datastoreutils.testutils.JobCoordinatorTestModule;
 import org.opendaylight.genius.datastoreutils.testutils.TestableDataTreeChangeListenerModule;
 import org.opendaylight.infrautils.inject.guice.testutils.GuiceRule;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.config.rev160806.AclserviceConfig.SecurityGroupMode;
@@ -18,7 +19,8 @@ public class AclServiceStatefulTest extends AclServiceTestBase {
 
     public @Rule MethodRule guice = new GuiceRule(new AclServiceModule(),
             new AclServiceTestModule(SecurityGroupMode.Stateful),
-            new TestableDataTreeChangeListenerModule());
+            new TestableDataTreeChangeListenerModule(),
+            new JobCoordinatorTestModule());
 
     private final FlowEntryObjectsStateful ipv4statefulentries = new FlowEntryObjectsStateful();
 
@@ -65,6 +67,16 @@ public class AclServiceStatefulTest extends AclServiceTestBase {
 
     @Override
     void newInterfaceWithAapIpv4AllCheck() {
-        assertFlowsInAnyOrder(FlowEntryObjectsStateful.aapWithIpv4AllFlows());
+        assertFlowsInAnyOrder(ipv4statefulentries.aapWithIpv4AllFlows());
+    }
+
+    @Override
+    void newInterfaceWithAapCheck() {
+        assertFlowsInAnyOrder(ipv4statefulentries.aapFlows());
+    }
+
+    @Override
+    void newInterfaceWithMultipleAclCheck() {
+        assertFlowsInAnyOrder(ipv4statefulentries.multipleAcl());
     }
 }