public class IntegrationTestKit extends ShardTestKit {
- DatastoreContext.Builder datastoreContextBuilder;
- DatastoreSnapshot restoreFromSnapshot;
+ protected DatastoreContext.Builder datastoreContextBuilder;
+ protected DatastoreSnapshot restoreFromSnapshot;
public IntegrationTestKit(ActorSystem actorSystem, Builder datastoreContextBuilder) {
super(actorSystem);
this.datastoreContextBuilder = datastoreContextBuilder;
}
+ public DatastoreContext.Builder getDatastoreContextBuilder() {
+ return datastoreContextBuilder;
+ }
+
public DistributedDataStore setupDistributedDataStore(String typeName, String... shardNames) {
return setupDistributedDataStore(typeName, "module-shards.conf", true, SchemaContextHelper.full(), shardNames);
}
waitUntilLeader(dataStore.getActorContext(), shardNames);
}
+ datastoreContextBuilder = DatastoreContext.newBuilderFrom(datastoreContext);
return dataStore;
}
assertEquals("Data node", nodeToWrite, optional.get());
}
- void doCommit(final DOMStoreThreePhaseCommitCohort cohort) throws Exception {
+ public void doCommit(final DOMStoreThreePhaseCommitCohort cohort) throws Exception {
Boolean canCommit = cohort.canCommit().get(7, TimeUnit.SECONDS);
assertEquals("canCommit", true, canCommit);
cohort.preCommit().get(5, TimeUnit.SECONDS);