Fix checkstyle violations in sal-inmemory-datastore
[controller.git] / opendaylight / md-sal / sal-inmemory-datastore / src / test / java / org / opendaylight / controller / md / sal / dom / store / impl / AbstractDataChangeListenerTest.java
index 3be301a32f5292a0e98f3d6d80dfb1bf518aab16..1146458171bd1dfff7bbbce51c5a8335b15aec44 100644 (file)
@@ -58,7 +58,8 @@ public abstract class AbstractDataChangeListenerTest {
         this.schemaContext = context.tryToCreateSchemaContext().get();
 
         this.dclExecutorService = new TestDCLExecutorService(
-                SpecialExecutors.newBlockingBoundedFastThreadPool(1, 10, "DCL" ));
+                SpecialExecutors.newBlockingBoundedFastThreadPool(1, 10, "DCL",
+                    AbstractDataChangeListenerTest.class));
 
         this.datastore = new InMemoryDOMDataStore("TEST", this.dclExecutorService);
         this.datastore.onGlobalContextUpdated(this.schemaContext);
@@ -66,7 +67,7 @@ public abstract class AbstractDataChangeListenerTest {
 
     @After
     public void tearDown() {
-        if( this.dclExecutorService != null ) {
+        if (this.dclExecutorService != null) {
             this.dclExecutorService.shutdownNow();
         }
     }
@@ -119,15 +120,15 @@ public abstract class AbstractDataChangeListenerTest {
 
     }
 
-    protected static <K> void assertNotContains(final Collection<K> set, final K... values) {
+    protected static <K> void assertContains(final Map<K,?> map, final K... values) {
         for (final K key : values) {
-            Assert.assertFalse(set.contains(key));
+            Assert.assertTrue(map.containsKey(key));
         }
     }
 
-    protected static <K> void assertContains(final Map<K,?> map, final K... values) {
+    protected static <K> void assertNotContains(final Collection<K> set, final K... values) {
         for (final K key : values) {
-            Assert.assertTrue(map.containsKey(key));
+            Assert.assertFalse(set.contains(key));
         }
     }