Search in sources :

Example 1 with SchemaState

use of org.neo4j.internal.schema.SchemaState in project neo4j by neo4j.

the class MultipleIndexPopulatorTest method before.

@BeforeEach
void before() {
    indexStatisticsStore = mock(IndexStatisticsStore.class);
    indexStoreView = mock(IndexStoreView.class);
    when(indexStoreView.newPropertyAccessor(any(CursorContext.class), any())).thenReturn(mock(NodePropertyAccessor.class));
    when(indexStoreView.visitNodes(any(), any(), any(), any(), anyBoolean(), anyBoolean(), any(), any())).thenReturn(mock(StoreScan.class));
    schemaState = mock(SchemaState.class);
    tokens = new InMemoryTokens();
    multipleIndexPopulator = new MultipleIndexPopulator(indexStoreView, NullLogProvider.getInstance(), EntityType.NODE, schemaState, jobScheduler, tokens, PageCacheTracer.NULL, INSTANCE, "", AUTH_DISABLED, Config.defaults());
}
Also used : InMemoryTokens(org.neo4j.test.InMemoryTokens) SchemaState(org.neo4j.internal.schema.SchemaState) IndexStatisticsStore(org.neo4j.kernel.impl.api.index.stats.IndexStatisticsStore) CursorContext(org.neo4j.io.pagecache.context.CursorContext) NodePropertyAccessor(org.neo4j.storageengine.api.NodePropertyAccessor) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 SchemaState (org.neo4j.internal.schema.SchemaState)1 CursorContext (org.neo4j.io.pagecache.context.CursorContext)1 IndexStatisticsStore (org.neo4j.kernel.impl.api.index.stats.IndexStatisticsStore)1 NodePropertyAccessor (org.neo4j.storageengine.api.NodePropertyAccessor)1 InMemoryTokens (org.neo4j.test.InMemoryTokens)1