DataBrokerTestModule: use AbstractDataBrokerTest without inheritance
[mdsal.git] / binding / mdsal-binding-dom-adapter / src / test / java / org / opendaylight / mdsal / binding / dom / adapter / test / AssertCollections.java
index a74a325516811c1d46b4cda478d2292a989dd296..a7eb9c31cc6fb079629f7745bf3f2d2116523e05 100644 (file)
@@ -5,15 +5,15 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.mdsal.binding.dom.adapter.test;
 
 import java.util.Collection;
 import java.util.Map;
-
 import org.junit.Assert;
 
-public class AssertCollections {
+public final class AssertCollections {
+    private AssertCollections() {
+    }
 
     public static void assertEmpty(final Collection<?> set) {
         Assert.assertTrue(set.isEmpty());
@@ -27,18 +27,17 @@ public class AssertCollections {
         for (Object key : values) {
             Assert.assertTrue(set.contains(key));
         }
-
     }
 
-    public static void assertNotContains(final Collection<?> set, final Object... values) {
+    public static void assertContains(final Map<?,?> map, final Object... values) {
         for (Object key : values) {
-            Assert.assertFalse(set.contains(key));
+            Assert.assertTrue(map.containsKey(key));
         }
     }
 
-    public static void assertContains(final Map<?,?> map, final Object... values) {
+    public static void assertNotContains(final Collection<?> set, final Object... values) {
         for (Object key : values) {
-            Assert.assertTrue(map.containsKey(key));
+            Assert.assertFalse(set.contains(key));
         }
     }