From 392a8e3b69781c91cc52174dcb0c8132682c13c3 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Mon, 25 May 2015 17:33:31 +0200 Subject: [PATCH] Migrade junit.frawork.Assert The new place s org.junit.Assert, migrate imports to squash eclipse warnings. Change-Id: I6900b400b32c7b3fd840497fec99159d6ec779db Signed-off-by: Robert Varga --- .../broker/impl/DOMDataTreeListenerTest.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/opendaylight/md-sal/sal-dom-broker/src/test/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMDataTreeListenerTest.java b/opendaylight/md-sal/sal-dom-broker/src/test/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMDataTreeListenerTest.java index c3038ca709..4bf205ab0b 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/test/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMDataTreeListenerTest.java +++ b/opendaylight/md-sal/sal-dom-broker/src/test/java/org/opendaylight/controller/md/sal/dom/broker/impl/DOMDataTreeListenerTest.java @@ -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> receivedChanges = new ArrayList<>(); - private CountDownLatch latch; + private final List> receivedChanges = new ArrayList<>(); + private final CountDownLatch latch; public TestDataTreeListener(final CountDownLatch latch) { this.latch = latch; -- 2.36.6