use of org.neo4j.kernel.api.impl.schema.verification.PartitionedUniquenessVerifier in project neo4j by neo4j.
the class PartitionedUniquenessVerifierTest method verifyPropertyUpdates.
@Test
public void verifyPropertyUpdates() throws Exception {
PartitionedUniquenessVerifier verifier = createPartitionedVerifier();
PropertyAccessor propertyAccessor = mock(PropertyAccessor.class);
verifier.verify(propertyAccessor, new int[] { 42 }, Arrays.asList("a", "b"));
verifySearchInvocations(searcher1, "a", "b");
verifySearchInvocations(searcher2, "a", "b");
verifySearchInvocations(searcher3, "a", "b");
}
use of org.neo4j.kernel.api.impl.schema.verification.PartitionedUniquenessVerifier in project neo4j by neo4j.
the class PartitionedUniquenessVerifierTest method partitionSearchersAreClosed.
@Test
public void partitionSearchersAreClosed() throws IOException {
PartitionedUniquenessVerifier verifier = createPartitionedVerifier();
verifier.close();
verify(searcher1).close();
verify(searcher2).close();
verify(searcher3).close();
}
Aggregations