Search in sources :

Example 1 with PartitionedUniquenessVerifier

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");
}
Also used : PartitionedUniquenessVerifier(org.neo4j.kernel.api.impl.schema.verification.PartitionedUniquenessVerifier) PropertyAccessor(org.neo4j.kernel.api.index.PropertyAccessor) Test(org.junit.Test)

Example 2 with PartitionedUniquenessVerifier

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();
}
Also used : PartitionedUniquenessVerifier(org.neo4j.kernel.api.impl.schema.verification.PartitionedUniquenessVerifier) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 PartitionedUniquenessVerifier (org.neo4j.kernel.api.impl.schema.verification.PartitionedUniquenessVerifier)2 PropertyAccessor (org.neo4j.kernel.api.index.PropertyAccessor)1