X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Ftest%2FAssertCollections.java;h=b9e1772aafbf1859c1ec9d3e26ab5a9ba090381a;hb=HEAD;hp=d96ebff49eb1190b14f8433edc9175ca4ce5e103;hpb=ed8f40c01c61ed505cb0c4d5b307a8dea0acc82f;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/AssertCollections.java b/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/AssertCollections.java deleted file mode 100644 index d96ebff49e..0000000000 --- a/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/AssertCollections.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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 { - - public static void assertEmpty(final Collection set) { - Assert.assertTrue(set.isEmpty()); - } - - public static void assertEmpty(final Map set) { - Assert.assertTrue(set.isEmpty()); - } - - public static void assertContains(final Collection set, final Object... values) { - for (Object key : values) { - Assert.assertTrue(set.contains(key)); - } - - } - - public static void assertNotContains(final Collection set, final Object... values) { - for (Object key : values) { - Assert.assertFalse(set.contains(key)); - } - } - - public static void assertContains(final Map map, final Object... values) { - for (Object key : values) { - Assert.assertTrue(map.containsKey(key)); - } - } - - public static void assertNotContains(final Map map, final Object... values) { - for (Object key : values) { - Assert.assertFalse(map.containsKey(key)); - } - } -}