use of org.neo4j.test.extension.ExtensionCallback in project neo4j by neo4j.
the class DatabaseIT method configure.
@ExtensionCallback
void configure(TestDatabaseManagementServiceBuilder builder) {
Dependencies dependencies = new Dependencies();
pageCacheWrapper = new PageCacheWrapper(pageCacheExtension.getPageCache(fs));
dependencies.satisfyDependency(pageCacheWrapper);
builder.setInternalLogProvider(logProvider).setExternalDependencies(dependencies);
}
use of org.neo4j.test.extension.ExtensionCallback in project neo4j by neo4j.
the class StringLengthIndexValidationIT method configure.
@ExtensionCallback
void configure(TestDatabaseManagementServiceBuilder builder) {
Monitors monitors = new Monitors();
IndexingService.MonitorAdapter trappingMonitor = new IndexingService.MonitorAdapter() {
@Override
public void indexPopulationScanComplete() {
if (trapPopulation.get()) {
populationScanFinished.reached();
}
}
};
monitors.addMonitorListener(trappingMonitor);
builder.setMonitors(monitors);
builder.setConfig(default_schema_provider, schemaIndex.providerName());
}
use of org.neo4j.test.extension.ExtensionCallback in project neo4j by neo4j.
the class PropertyStoreTraceIT method configure.
@ExtensionCallback
void configure(TestDatabaseManagementServiceBuilder builder) {
var dependencies = new Dependencies();
// disabling periodic id buffers maintenance jobs
dependencies.satisfyDependency(new CentralJobScheduler(Clocks.nanoClock()) {
@Override
public JobHandle<?> scheduleRecurring(Group group, JobMonitoringParams monitoredJobParams, Runnable runnable, long period, TimeUnit timeUnit) {
return JobHandle.EMPTY;
}
@Override
public JobHandle<?> scheduleRecurring(Group group, JobMonitoringParams monitoredJobParams, Runnable runnable, long initialDelay, long period, TimeUnit unit) {
return JobHandle.EMPTY;
}
});
builder.setExternalDependencies(dependencies);
}
use of org.neo4j.test.extension.ExtensionCallback in project neo4j by neo4j.
the class FulltextProceduresTestSupport method configure.
@ExtensionCallback
void configure(TestDatabaseManagementServiceBuilder builder) {
Monitors monitors = new Monitors();
IndexingService.MonitorAdapter trappingMonitor = new IndexingService.MonitorAdapter() {
@Override
public void indexPopulationScanComplete() {
if (trapPopulation.get()) {
populationScanFinished.reached();
}
}
};
monitors.addMonitorListener(trappingMonitor);
builder.setMonitors(monitors);
builder.setConfig(GraphDatabaseSettings.store_internal_log_level, Level.DEBUG);
}
use of org.neo4j.test.extension.ExtensionCallback in project neo4j by neo4j.
the class SchemaIndexWaitingAcceptanceTest method configure.
@ExtensionCallback
void configure(TestDatabaseManagementServiceBuilder builder) {
List<ExtensionFactory<?>> extensions = Arrays.asList(singleInstanceIndexProviderFactory("test", provider), new TokenIndexProviderFactory());
builder.setExtensions(extensions).noOpSystemGraphInitializer();
builder.setConfig(default_schema_provider, provider.getProviderDescriptor().name());
}
Aggregations