Replace deprecated junit.framework.Assert with org.junit.Assert.
Change-Id: I94fb065d9015955f2abc91a95be0a4137717e485
Signed-off-by: Gary Wu <gary.wu@gmail.com>
15 files changed:
import javax.inject.Inject;
import javax.inject.Inject;
-import junit.framework.Assert;
+import org.junit.Assert;
import org.apache.karaf.features.Feature;
import org.apache.karaf.features.FeaturesService;
import org.apache.karaf.features.Feature;
import org.apache.karaf.features.FeaturesService;
\r
import java.util.Hashtable;\r
\r
\r
import java.util.Hashtable;\r
\r
-import static junit.framework.Assert.assertNull;\r
+import static org.junit.Assert.assertNull;\r
import static org.junit.Assert.assertEquals;\r
\r
public class ContainerImplTest {\r
import static org.junit.Assert.assertEquals;\r
\r
public class ContainerImplTest {\r
import org.opendaylight.controller.sal.utils.NodeConnectorCreator;
import org.opendaylight.controller.sal.utils.NodeCreator;
import org.opendaylight.controller.sal.utils.NodeConnectorCreator;
import org.opendaylight.controller.sal.utils.NodeCreator;
-import static junit.framework.Assert.fail;
+import static org.junit.Assert.fail;
public class StaticRouteTest {
public class StaticRouteTest {
*/
package org.opendaylight.controller.forwardingrulesmanager.internal;
*/
package org.opendaylight.controller.forwardingrulesmanager.internal;
-import static junit.framework.Assert.fail;
+import static org.junit.Assert.fail;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.ops4j.pax.exam.CoreOptions.junitBundles;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.ops4j.pax.exam.CoreOptions.junitBundles;
-import junit.framework.Assert;
+import org.junit.Assert;
package org.opendaylight.controller.sal.packet;
package org.opendaylight.controller.sal.packet;
-import junit.framework.Assert;
+import org.junit.Assert;
-import junit.framework.Assert;
+import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.controller.sal.match.Match;
import org.junit.Test;
import org.opendaylight.controller.sal.match.Match;
-import junit.framework.Assert;
+import org.junit.Assert;
package org.opendaylight.controller.sal.packet;
package org.opendaylight.controller.sal.packet;
-import junit.framework.Assert;
+import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.controller.sal.match.Match;
import org.junit.Test;
import org.opendaylight.controller.sal.match.Match;
import java.util.Arrays;
import java.util.Map;
import java.util.Arrays;
import java.util.Map;
-import junit.framework.Assert;
+import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.controller.sal.match.Match;
import org.junit.Test;
import org.opendaylight.controller.sal.match.Match;
package org.opendaylight.controller.sal.packet;
package org.opendaylight.controller.sal.packet;
-import junit.framework.Assert;
+import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.controller.sal.match.Match;
import org.junit.Test;
import org.opendaylight.controller.sal.match.Match;
package org.opendaylight.controller.sal.packet;
package org.opendaylight.controller.sal.packet;
-import junit.framework.Assert;
+import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.controller.sal.match.Match;
import org.junit.Test;
import org.opendaylight.controller.sal.match.Match;
*/
package org.opendaylight.controller.md.sal.binding.data;
*/
package org.opendaylight.controller.md.sal.binding.data;
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertFalse;
-import static junit.framework.Assert.assertNotNull;
-import static junit.framework.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
import java.util.Collections;
import java.util.HashSet;
import java.util.Collections;
import java.util.HashSet;
*/
package org.opendaylight.controller.sal.binding.test.connect.dom;
*/
package org.opendaylight.controller.sal.binding.test.connect.dom;
-import static junit.framework.Assert.assertNotNull;
+import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertEquals;
import java.math.BigInteger;
import static org.junit.Assert.assertEquals;
import java.math.BigInteger;
import com.google.common.collect.Maps;
import java.util.Map;
import com.google.common.collect.Maps;
import java.util.Map;
-import junit.framework.Assert;
+import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.controller.netconf.cli.commands.CommandConstants;
import org.opendaylight.yangtools.yang.common.QName;
import org.junit.Test;
import org.opendaylight.controller.netconf.cli.commands.CommandConstants;
import org.opendaylight.yangtools.yang.common.QName;