use of org.neo4j.internal.schema.LabelSchemaDescriptor in project neo4j by neo4j.
the class FusionIndexUpdaterTest method verifyAddWithCorrectUpdater.
private void verifyAddWithCorrectUpdater(IndexUpdater correctPopulator, Value... numberValues) throws IndexEntryConflictException {
IndexEntryUpdate<LabelSchemaDescriptor> update = add(numberValues);
fusionIndexUpdater.process(update);
verify(correctPopulator).process(update);
for (IndexUpdater populator : aliveUpdaters) {
if (populator != correctPopulator) {
verify(populator, never()).process(update);
}
}
}
use of org.neo4j.internal.schema.LabelSchemaDescriptor in project neo4j by neo4j.
the class FusionIndexUpdaterTest method verifyChangeWithCorrectUpdaterNotMixed.
private void verifyChangeWithCorrectUpdaterNotMixed(IndexUpdater correctPopulator, Value before, Value after) throws IndexEntryConflictException {
IndexEntryUpdate<LabelSchemaDescriptor> update = FusionIndexTestHelp.change(before, after);
fusionIndexUpdater.process(update);
verify(correctPopulator).process(update);
for (IndexUpdater populator : aliveUpdaters) {
if (populator != correctPopulator) {
verify(populator, never()).process(update);
}
}
}
use of org.neo4j.internal.schema.LabelSchemaDescriptor in project neo4j by neo4j.
the class FusionIndexUpdaterTest method verifyRemoveWithCorrectUpdater.
private void verifyRemoveWithCorrectUpdater(IndexUpdater correctPopulator, Value... numberValues) throws IndexEntryConflictException {
IndexEntryUpdate<LabelSchemaDescriptor> update = FusionIndexTestHelp.remove(numberValues);
fusionIndexUpdater.process(update);
verify(correctPopulator).process(update);
for (IndexUpdater populator : aliveUpdaters) {
if (populator != correctPopulator) {
verify(populator, never()).process(update);
}
}
}
Aggregations