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%2FDataTreeCohortActorTest.java;h=5db3f39b6efe40ae3255a2542472aaecb883bc8b;hp=ae8dd51466b0978b980f467a6ad1ce03d0cb06be;hb=HEAD;hpb=47c9d6a2bdf5897a8e6abbe2cb753dddedbc3b61 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DataTreeCohortActorTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DataTreeCohortActorTest.java index ae8dd51466..7a3e268392 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DataTreeCohortActorTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DataTreeCohortActorTest.java @@ -137,7 +137,7 @@ public class DataTreeCohortActorTest extends AbstractActorTest { @Test public void testFailureOnCanCommit() throws Exception { - DataValidationFailedException failure = new DataValidationFailedException(YangInstanceIdentifier.empty(), + DataValidationFailedException failure = new DataValidationFailedException(YangInstanceIdentifier.of(), "mock"); doReturn(FluentFutures.immediateFailedFluentFuture(failure)).when(mockCohort).canCommit(any(Object.class), any(EffectiveModelContext.class), anyCollection()); @@ -195,7 +195,7 @@ public class DataTreeCohortActorTest extends AbstractActorTest { } private ActorRef newCohortActor(final String name) { - return actorFactory.createActor(DataTreeCohortActor.props(mockCohort, YangInstanceIdentifier.empty()), name); + return actorFactory.createActor(DataTreeCohortActor.props(mockCohort, YangInstanceIdentifier.of()), name); } private void resetMockCohort() {