Migrate OSGI compendium reference
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / test / java / org / opendaylight / controller / md / sal / binding / test / AssertCollections.java
index 25b91bc3e4dd3e6d85f171073b87b82004a0e8b6..b9e1772aafbf1859c1ec9d3e26ab5a9ba090381a 100644 (file)
@@ -1,11 +1,21 @@
+/*
+ * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * 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.controller.md.sal.binding.test;
 
 import java.util.Collection;
 import java.util.Map;
-
 import org.junit.Assert;
 
-public class AssertCollections {
+@Deprecated
+public final class AssertCollections {
+    private AssertCollections() {
+    }
 
     public static void assertEmpty(final Collection<?> set) {
         Assert.assertTrue(set.isEmpty());
@@ -22,15 +32,15 @@ public class AssertCollections {
 
     }
 
-    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));
         }
     }