X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FShardRecoveryCoordinatorTest.java;h=029645cea16ea97970225b1824e0c3396a947ea9;hp=4ad48a1d8301de1a19a70349cae12e1cacb798bd;hb=b9711f17a53a4fad48197df6c39b58e4faadc862;hpb=4e991c7dc07090690a29b20c962b24ee4dd1f157 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardRecoveryCoordinatorTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardRecoveryCoordinatorTest.java index 4ad48a1d83..029645cea1 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardRecoveryCoordinatorTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardRecoveryCoordinatorTest.java @@ -33,7 +33,7 @@ import org.opendaylight.yangtools.yang.data.api.schema.tree.DataValidationFailed import org.opendaylight.yangtools.yang.data.api.schema.tree.TreeType; import org.opendaylight.yangtools.yang.data.impl.schema.tree.InMemoryDataTreeFactory; import org.opendaylight.yangtools.yang.data.impl.schema.tree.SchemaValidationFailedException; -import org.opendaylight.yangtools.yang.model.api.SchemaContext; +import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -41,8 +41,8 @@ public class ShardRecoveryCoordinatorTest extends AbstractTest { private static final Logger FOO_LOGGER = LoggerFactory.getLogger("foo"); private ShardDataTree peopleDataTree; - private SchemaContext peopleSchemaContext; - private SchemaContext carsSchemaContext; + private EffectiveModelContext peopleSchemaContext; + private EffectiveModelContext carsSchemaContext; private ShardRecoveryCoordinator coordinator; @Before @@ -103,7 +103,7 @@ public class ShardRecoveryCoordinatorTest extends AbstractTest { private Optional> readCars(final ShardDataTree shardDataTree) { final DataTree dataTree = shardDataTree.getDataTree(); // FIXME: this should not be called here - dataTree.setSchemaContext(peopleSchemaContext); + dataTree.setEffectiveModelContext(peopleSchemaContext); return shardDataTree.readNode(CarsModel.BASE_PATH); } @@ -111,7 +111,7 @@ public class ShardRecoveryCoordinatorTest extends AbstractTest { private Optional> readPeople(final ShardDataTree shardDataTree) { final DataTree dataTree = shardDataTree.getDataTree(); // FIXME: this should not be called here - dataTree.setSchemaContext(peopleSchemaContext); + dataTree.setEffectiveModelContext(peopleSchemaContext); return shardDataTree.readNode(PeopleModel.BASE_PATH); }