use of org.neo4j.internal.id.IdController in project neo4j by neo4j.
the class CommunityEditionModuleIntegrationTest method createBufferedIdComponentsByDefault.
@Test
void createBufferedIdComponentsByDefault() {
DatabaseManagementService managementService = new TestDatabaseManagementServiceBuilder(testDirectory.homePath()).build();
GraphDatabaseAPI database = (GraphDatabaseAPI) managementService.database(DEFAULT_DATABASE_NAME);
try {
DependencyResolver dependencyResolver = database.getDependencyResolver();
IdController idController = dependencyResolver.resolveDependency(IdController.class);
IdGeneratorFactory idGeneratorFactory = dependencyResolver.resolveDependency(IdGeneratorFactory.class);
assertThat(idController).isInstanceOf(BufferedIdController.class);
assertThat(idGeneratorFactory).isInstanceOf(BufferingIdGeneratorFactory.class);
} finally {
managementService.shutdown();
}
}
Aggregations