Merge "BUG-731 : removed critical sonar warnings"
authorRobert Varga <rovarga@cisco.com>
Fri, 10 Oct 2014 23:47:44 +0000 (23:47 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 10 Oct 2014 23:47:44 +0000 (23:47 +0000)
15 files changed:
bgp/rib-impl/src/test/java/org/opendaylight/controller/config/yang/bgp/rib/impl/BGPPeerAcceptorModuleTest.java
bgp/rib-spi/src/test/java/org/opendaylight/protocol/bgp/rib/spi/AbstractAdjRIBsTest.java
bgp/rib-spi/src/test/java/org/opendaylight/protocol/bgp/rib/spi/SimpleRIBExtensionTest.java
bgp/topology-provider/src/test/java/org/opendaylight/bgpcep/bgp/topology/provider/ParserToSalTest.java
data-change-counter/src/test/java/org/opendaylight/controller/config/yang/bgpcep/data/change/counter/DataChangeCounterImplModuleTest.java
pcep/impl/src/test/java/org/opendaylight/protocol/pcep/impl/PCEPDispatcherImplTest.java
pcep/pcc-mock/src/test/java/org/opendaylight/protocol/pcep/pcc/mock/PCCMockTest.java
pcep/pcc-mock/src/test/java/org/opendaylight/protocol/pcep/pcc/mock/SimpleSessionListenerTest.java
pcep/testtool/src/test/java/org/opendaylight/protocol/pcep/testtool/PCEPTestingToolTest.java
pcep/topology-provider/src/test/java/org/opendaylight/bgpcep/pcep/topology/provider/Stateful02TopologySessionListenerTest.java
pcep/topology-provider/src/test/java/org/opendaylight/bgpcep/pcep/topology/provider/Stateful07TopologySessionListenerTest.java
pcep/topology-provider/src/test/java/org/opendaylight/bgpcep/pcep/topology/provider/TopologyProgrammingTest.java
pcep/tunnel-provider/src/test/java/org/opendaylight/bgpcep/pcep/tunnel/provider/NodeChangedListenerTest.java
pcep/tunnel-provider/src/test/java/org/opendaylight/bgpcep/pcep/tunnel/provider/TunnelProgrammingTest.java
programming/impl/src/test/java/org/opendaylight/bgpcep/programming/impl/MockedNotificationServiceWrapper.java

index 3272d5d74b522d0aac9fff3bbb4eecc7e13e1ac8..11e564e11f114a9106f4ce739d04feae33178f26 100644 (file)
@@ -25,7 +25,7 @@ import java.net.InetSocketAddress;
 import java.util.List;
 import javax.management.InstanceAlreadyExistsException;
 import javax.management.ObjectName;
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 import org.mockito.Mock;
index dd8df5281fdc3a1c15e868be32257357959c6a39..2d7b82d4155516d53ace7bd0200e3d6163ea13ea 100644 (file)
@@ -11,7 +11,7 @@ package org.opendaylight.protocol.bgp.rib.spi;
 import com.google.common.collect.Maps;
 import java.util.AbstractMap;
 import java.util.Map;
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 import org.mockito.Matchers;
index 39c5b9ce1f8459c3ac45108f7a5c16b35a6dd3ae..3a6020e4823986eea0a93d13186035ad84589e52 100644 (file)
@@ -10,7 +10,7 @@ package org.opendaylight.protocol.bgp.rib.spi;
 
 import com.google.common.collect.Lists;
 import java.util.List;
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.junit.Test;
 import org.mockito.Mockito;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.rib.Tables;
index e45e62f66cd8a77f0ec564f8c4b77a995c4480af..d17aee1b140aae6ac86a6c71f608049191942761 100644 (file)
@@ -7,8 +7,8 @@
  */
 package org.opendaylight.bgpcep.bgp.topology.provider;
 
-import static junit.framework.Assert.assertFalse;
-import static junit.framework.Assert.assertTrue;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
 
 import com.google.common.base.Function;
 import com.google.common.base.Optional;
index d126f3e6cfb29dba7a0e50fb13b053f7ca874362..9b552b07b65882de75fd92b0308e4d29edbc9fc0 100644 (file)
@@ -11,7 +11,7 @@ package org.opendaylight.controller.config.yang.bgpcep.data.change.counter;
 import java.util.Collections;
 import java.util.Set;
 import javax.management.ObjectName;
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 import org.mockito.Mock;
index e0ce7c13767d7463e0fcab8075d32ea0b3a538e5..fc52bcdee92d43381c077ab868a0a7b15d608427 100644 (file)
@@ -19,8 +19,8 @@ import io.netty.util.concurrent.GlobalEventExecutor;
 import io.netty.util.concurrent.Promise;
 import java.net.InetSocketAddress;
 import java.util.concurrent.ExecutionException;
-import junit.framework.Assert;
 import org.junit.After;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 import org.opendaylight.protocol.framework.AbstractDispatcher;
index 7fb0b8629e41bc7dbc0ae33374a86cadcfd693df..a69f259e8268447c3ae9d774658acc679c2b21cd 100644 (file)
@@ -11,7 +11,7 @@ package org.opendaylight.protocol.pcep.pcc.mock;
 import io.netty.buffer.Unpooled;
 import java.lang.reflect.Constructor;
 import java.lang.reflect.InvocationTargetException;
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.protocol.pcep.spi.ObjectHeaderImpl;
 import org.opendaylight.protocol.pcep.spi.PCEPDeserializerException;
index 057cc70306edddc3ab3720efd32b3919a1f4da9f..f6ec5a9ffc640e3184ffa9a729cdda05e56cf05b 100644 (file)
@@ -8,8 +8,8 @@
 
 package org.opendaylight.protocol.pcep.pcc.mock;
 
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 
 import com.google.common.collect.Lists;
 import java.net.InetAddress;
index b7627c4f20feae6496eb9b4f4844018f1926aab2..fc8ecbe8c1416ac79f6088e7ae8efe6642123913 100644 (file)
@@ -11,7 +11,7 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.message.rev131007.KeepaliveBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.KeepaliveMessage;
index 2bf7264b77bfae8e683db90b0ea385afff86a492..dd9c450af59fcf5f06e478aa150864e6fa038840 100644 (file)
@@ -8,10 +8,10 @@
 
 package org.opendaylight.bgpcep.pcep.topology.provider;
 
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertNotNull;
-import static junit.framework.Assert.assertNull;
-import static junit.framework.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
 
 import com.google.common.base.Optional;
 import com.google.common.collect.Lists;
index 50e4ab9c07c4d4f89dbc870179450af05597a158..dbe62927e5f28d6ada3cfae4a8e46d53bf64bdcd 100644 (file)
@@ -8,11 +8,11 @@
 
 package org.opendaylight.bgpcep.pcep.topology.provider;
 
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertFalse;
-import static junit.framework.Assert.assertNotNull;
-import static junit.framework.Assert.assertNull;
-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.assertNull;
+import static org.junit.Assert.assertTrue;
 import static org.opendaylight.protocol.pcep.pcc.mock.MsgBuilderUtil.createLspTlvs;
 
 import com.google.common.base.Optional;
@@ -23,7 +23,7 @@ import java.util.Collections;
 import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 import org.opendaylight.protocol.pcep.PCEPCloseTermination;
index f75d7e8e16686108e3247e3348d990866ae0c332..770d0a06abc48f69642bad9b3b163e11b550d13a 100644 (file)
@@ -12,7 +12,7 @@ import com.google.common.util.concurrent.ListenableFuture;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Executor;
 import java.util.concurrent.Future;
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 import org.mockito.Mock;
index 5715cb3828af68e960d83e2ed99ef4c9d3c2a9ea..29d0516c27c7158b7d37a5d799434c32bb22b85c 100644 (file)
@@ -10,8 +10,8 @@ package org.opendaylight.bgpcep.pcep.tunnel.provider;
 
 import com.google.common.base.Optional;
 import com.google.common.collect.Lists;
-import junit.framework.Assert;
 import org.junit.After;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 import org.opendaylight.controller.md.sal.binding.api.DataChangeListener;
index 5f8aa40a9279e37a9ffd47ae6550a84962ba28a5..659f054d3c7f1898cd765285c48c47327f0bf276 100644 (file)
@@ -14,7 +14,7 @@ import java.util.List;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Executor;
 import java.util.concurrent.Future;
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 import org.mockito.Mock;
index a33be06f4d132f2033b1898ff2fb13f0d9eb804c..aa26b820bd227719cad5dcfc2b9d628d7f8144ac 100644 (file)
@@ -7,15 +7,15 @@
  */
 package org.opendaylight.bgpcep.programming.impl;
 
-import static junit.framework.Assert.assertTrue;
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 import static org.mockito.Matchers.any;
 import static org.mockito.Mockito.doAnswer;
 import static org.mockito.Mockito.mock;
 
 import com.google.common.collect.Lists;
 import java.util.List;
-import junit.framework.Assert;
+import org.junit.Assert;
 import org.mockito.invocation.InvocationOnMock;
 import org.mockito.stubbing.Answer;
 import org.opendaylight.controller.sal.binding.api.NotificationProviderService;