X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDataTreeCohortIntegrationTest.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDataTreeCohortIntegrationTest.java;h=5a131cd8ad578e9f94674d14d0b1e0c684181a84;hb=e9fc7e7ed2b13d274518d6a872ab67749ef4507a;hp=73a6c74f83f922d744e7e43e1b74351c58d450ca;hpb=cc7d70b6fa32b99e1013c3b3c26006d9798d2b95;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DataTreeCohortIntegrationTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DataTreeCohortIntegrationTest.java index 73a6c74f83..5a131cd8ad 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DataTreeCohortIntegrationTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DataTreeCohortIntegrationTest.java @@ -23,7 +23,7 @@ import akka.actor.ActorSystem; import akka.actor.Address; import akka.actor.AddressFromURIString; import akka.cluster.Cluster; -import akka.testkit.JavaTestKit; +import akka.testkit.javadsl.TestKit; import com.google.common.base.Optional; import com.google.common.base.Throwables; import com.google.common.util.concurrent.CheckedFuture; @@ -84,7 +84,7 @@ public class DataTreeCohortIntegrationTest { @AfterClass public static void tearDownClass() throws IOException { - JavaTestKit.shutdownActorSystem(system); + TestKit.shutdownActorSystem(system); system = null; } @@ -259,8 +259,8 @@ public class DataTreeCohortIntegrationTest { } @SuppressWarnings("rawtypes") - private static DOMDataTreeCandidate findCandidate(ArgumentCaptor candidateCapture, - YangInstanceIdentifier rootPath) { + private static DOMDataTreeCandidate findCandidate(final ArgumentCaptor candidateCapture, + final YangInstanceIdentifier rootPath) { for (Object obj: candidateCapture.getValue()) { DOMDataTreeCandidate candidate = (DOMDataTreeCandidate)obj; if (rootPath.equals(candidate.getRootPath().getRootIdentifier())) { @@ -307,9 +307,9 @@ public class DataTreeCohortIntegrationTest { } } - private static void assertDataTreeCandidate(DOMDataTreeCandidate candidate, DOMDataTreeIdentifier expTreeId, - ModificationType expType, Optional> expDataAfter, - Optional> expDataBefore) { + private static void assertDataTreeCandidate(final DOMDataTreeCandidate candidate, + final DOMDataTreeIdentifier expTreeId, final ModificationType expType, + final Optional> expDataAfter, final Optional> expDataBefore) { assertNotNull("Expected candidate for path " + expTreeId.getRootIdentifier(), candidate); assertEquals("rootPath", expTreeId, candidate.getRootPath()); assertEquals("modificationType", expType, candidate.getRootNode().getModificationType());