Migrade junit.frawork.Assert 07/21107/2
authorRobert Varga <rovarga@cisco.com>
Mon, 25 May 2015 15:33:31 +0000 (17:33 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 26 May 2015 13:45:27 +0000 (13:45 +0000)
The new place s org.junit.Assert, migrate imports to squash eclipse
warnings.

Change-Id: I6900b400b32c7b3fd840497fec99159d6ec779db
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 392a8e3b69781c91cc52174dcb0c8132682c13c3)

opendaylight/md-sal/sal-dom-broker/src/test/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMDataTreeListenerTest.java

index c3038ca7095c8d0a1759d80ec405ab3eb180931b..4bf205ab0b093e3ac31800f425c605cf1748aeec 100644 (file)
@@ -7,10 +7,10 @@
  */
 package org.opendaylight.controller.md.sal.dom.broker.impl;
 
-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 static org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType.CONFIGURATION;
 import static org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType.OPERATIONAL;
 import com.google.common.collect.ImmutableMap;
@@ -383,10 +383,10 @@ public class DOMDataTreeListenerTest {
         listenerReg.close();
     }
 
-    private static void checkChange(NormalizedNode<?, ?> expectedBefore,
-                                    NormalizedNode<?, ?> expectedAfter,
-                                    ModificationType expectedMod,
-                                    DataTreeCandidateNode candidateNode) {
+    private static void checkChange(final NormalizedNode<?, ?> expectedBefore,
+                                    final NormalizedNode<?, ?> expectedAfter,
+                                    final ModificationType expectedMod,
+                                    final DataTreeCandidateNode candidateNode) {
         if (expectedBefore != null) {
             assertTrue(candidateNode.getDataBefore().isPresent());
             assertEquals(expectedBefore, candidateNode.getDataBefore().get());
@@ -434,8 +434,8 @@ public class DOMDataTreeListenerTest {
 
     static class TestDataTreeListener implements DOMDataTreeChangeListener {
 
-        private List<Collection<DataTreeCandidate>> receivedChanges = new ArrayList<>();
-        private CountDownLatch latch;
+        private final List<Collection<DataTreeCandidate>> receivedChanges = new ArrayList<>();
+        private final CountDownLatch latch;
 
         public TestDataTreeListener(final CountDownLatch latch) {
             this.latch = latch;