From 84edcd6f947977ed7c710789f9f7969fc9a32de1 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 16 Jan 2024 02:07:57 +0100 Subject: [PATCH] Migrate ShardDataTreeSnapshotTest This is a straightforward replace of Builders-only call sites. Change-Id: Id38446025310579478ecd03203bd632f6c522af8 Signed-off-by: Robert Varga --- .../datastore/persisted/ShardDataTreeSnapshotTest.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java index b0bb230464..9d172e653a 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java @@ -23,8 +23,7 @@ import org.junit.Test; import org.opendaylight.controller.md.cluster.datastore.model.TestModel; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier; import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode; -import org.opendaylight.yangtools.yang.data.impl.schema.Builders; -import org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes; +import org.opendaylight.yangtools.yang.data.spi.node.ImmutableNodes; /** * Unit tests for ShardDataTreeSnapshot. @@ -32,10 +31,9 @@ import org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes; * @author Thomas Pantelis */ public class ShardDataTreeSnapshotTest { - @Test public void testShardDataTreeSnapshotWithNoMetadata() throws Exception { - ContainerNode expectedNode = Builders.containerBuilder() + ContainerNode expectedNode = ImmutableNodes.newContainerBuilder() .withNodeIdentifier(new NodeIdentifier(TestModel.TEST_QNAME)) .withChild(ImmutableNodes.leafNode(TestModel.DESC_QNAME, "foo")).build(); @@ -60,7 +58,7 @@ public class ShardDataTreeSnapshotTest { @Test public void testShardDataTreeSnapshotWithMetadata() throws Exception { - ContainerNode expectedNode = Builders.containerBuilder() + ContainerNode expectedNode = ImmutableNodes.newContainerBuilder() .withNodeIdentifier(new NodeIdentifier(TestModel.TEST_QNAME)) .withChild(ImmutableNodes.leafNode(TestModel.DESC_QNAME, "foo")).build(); -- 2.36.6