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%2FDataTreeCohortIntegrationTest.java;h=73a6c74f83f922d744e7e43e1b74351c58d450ca;hp=c9a30677a663a57dfe3a0bfae84fbb545e9314c1;hb=cd3a0e09db5a1def00c46a4be245dbdf648b539c;hpb=806ca77eb8f5c6a7de07f5f6a0f2b3d234752050 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 c9a30677a6..73a6c74f83 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 @@ -101,8 +101,8 @@ public class DataTreeCohortIntegrationTest { ArgumentCaptor candidateCapt = ArgumentCaptor.forClass(Collection.class); IntegrationTestKit kit = new IntegrationTestKit(getSystem(), datastoreContextBuilder); - try (AbstractDataStore dataStore = kit.setupDistributedDataStore("testSuccessfulCanCommitWithNoopPostStep", - "test-1")) { + try (AbstractDataStore dataStore = kit.setupAbstractDataStore( + DistributedDataStore.class, "testSuccessfulCanCommitWithNoopPostStep", "test-1")) { final ObjectRegistration cohortReg = dataStore.registerCommitCohort(TEST_ID, cohort); assertNotNull(cohortReg); @@ -144,7 +144,8 @@ public class DataTreeCohortIntegrationTest { any(Collection.class), any(SchemaContext.class)); IntegrationTestKit kit = new IntegrationTestKit(getSystem(), datastoreContextBuilder); - try (AbstractDataStore dataStore = kit.setupDistributedDataStore("testFailedCanCommit", "test-1")) { + try (AbstractDataStore dataStore = kit.setupAbstractDataStore( + DistributedDataStore.class, "testFailedCanCommit", "test-1")) { dataStore.registerCommitCohort(TEST_ID, failedCohort); IntegrationTestKit.verifyShardState(dataStore, "test-1", @@ -170,8 +171,8 @@ public class DataTreeCohortIntegrationTest { any(Collection.class), any(SchemaContext.class)); IntegrationTestKit kit = new IntegrationTestKit(getSystem(), datastoreContextBuilder); - try (AbstractDataStore dataStore = kit.setupDistributedDataStore("testCanCommitWithMultipleListEntries", - "cars-1")) { + try (AbstractDataStore dataStore = kit.setupAbstractDataStore( + DistributedDataStore.class, "testCanCommitWithMultipleListEntries", "cars-1")) { final ObjectRegistration cohortReg = dataStore.registerCommitCohort( new DOMDataTreeIdentifier(LogicalDatastoreType.CONFIGURATION, CarsModel.CAR_LIST_PATH .node(CarsModel.CAR_QNAME)), cohort); @@ -287,8 +288,8 @@ public class DataTreeCohortIntegrationTest { any(Collection.class), any(SchemaContext.class)); IntegrationTestKit kit = new IntegrationTestKit(getSystem(), datastoreContextBuilder); - try (AbstractDataStore dataStore = kit.setupDistributedDataStore("testAbortAfterCanCommit", - "test-1", "cars-1")) { + try (AbstractDataStore dataStore = kit.setupAbstractDataStore( + DistributedDataStore.class, "testAbortAfterCanCommit", "test-1", "cars-1")) { dataStore.registerCommitCohort(TEST_ID, cohortToAbort); IntegrationTestKit.verifyShardState(dataStore, "test-1",