X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fimpl%2Ftest%2FDataTreeChangeListenerTest.java;h=bfa7e827251d86944ef77ea573b4330158b4c7f5;hp=a41f6f03ea5dc4146cdf934b1053ed76e0ce2544;hb=3ec97cd0a86ad1b79f6854dc6924eb7b06e359a3;hpb=70cd4b01dd47a66c5591e6f8151430bb9c274a09 diff --git a/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/impl/test/DataTreeChangeListenerTest.java b/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/impl/test/DataTreeChangeListenerTest.java index a41f6f03ea..bfa7e82725 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/impl/test/DataTreeChangeListenerTest.java +++ b/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/impl/test/DataTreeChangeListenerTest.java @@ -5,7 +5,6 @@ * 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.impl.test; import static org.junit.Assert.assertEquals; @@ -27,6 +26,7 @@ import com.google.common.collect.Iterables; import com.google.common.util.concurrent.SettableFuture; import java.util.ArrayList; import java.util.Collection; +import java.util.Set; import java.util.concurrent.TimeUnit; import org.junit.Before; import org.junit.Test; @@ -53,6 +53,7 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.PathArgument; import org.opendaylight.yangtools.yang.binding.YangModuleInfo; +@Deprecated public class DataTreeChangeListenerTest extends AbstractConcurrentDataBrokerTest { private static final InstanceIdentifier TOP_PATH = InstanceIdentifier.create(Top.class); @@ -88,7 +89,7 @@ public class DataTreeChangeListenerTest extends AbstractConcurrentDataBrokerTest } @Override - protected Iterable getModuleInfos() throws Exception { + protected Set getModuleInfos() throws Exception { return ImmutableSet.of( BindingReflections.getModuleInfo(TwoLevelList.class), BindingReflections.getModuleInfo(TreeComplexUsesAugment.class) @@ -151,7 +152,7 @@ public class DataTreeChangeListenerTest extends AbstractConcurrentDataBrokerTest @SuppressWarnings("unchecked") @Test - public void testWildcardNotificationOfPreexistingData() throws Exception { + public void testWildcardNotificationOfPreexistingData() { InstanceIdentifier id = InstanceIdentifier.builder(Top.class).build(); ArrayList list = new ArrayList<>(); list.add(new TopLevelListBuilder().setName("name").build()); @@ -183,7 +184,7 @@ public class DataTreeChangeListenerTest extends AbstractConcurrentDataBrokerTest assertEquals(TOP_INITIAL_DATA, initialNode.getDataAfter()); } - private void verifyModification(final DataObjectModification barWrite, + private static void verifyModification(final DataObjectModification barWrite, final PathArgument pathArg, final ModificationType eventType) { assertEquals(pathArg.getType(), barWrite.getDataType()); assertEquals(eventType,barWrite.getModificationType());