Search in sources :

Example 11 with ChangeSetBuilder

use of org.apache.jackrabbit.oak.plugins.observation.ChangeSetBuilder in project jackrabbit-oak by apache.

the class ChangeSetFilterImplTest method testIncludeOnParentPathsOverflow.

@Test
public void testIncludeOnParentPathsOverflow() throws Exception {
    ChangeSetBuilder builder = sampleBuilder();
    ChangeSetFilterImpl prefilter = new ChangeSetFilterImpl(s("/"), true, null, s("/excluded"), s("foo", "bars"), s("nt:file"), s());
    assertTrue(prefilter.excludes(builder.build()));
    overflowParentPaths(builder);
    assertFalse(prefilter.excludes(builder.build()));
}
Also used : ChangeSetBuilder(org.apache.jackrabbit.oak.plugins.observation.ChangeSetBuilder) Test(org.junit.Test)

Aggregations

ChangeSetBuilder (org.apache.jackrabbit.oak.plugins.observation.ChangeSetBuilder)11 Test (org.junit.Test)8 Stopwatch (com.google.common.base.Stopwatch)1 IOException (java.io.IOException)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 StringSort (org.apache.jackrabbit.oak.commons.sort.StringSort)1 ChangeSet (org.apache.jackrabbit.oak.plugins.observation.ChangeSet)1 Clock (org.apache.jackrabbit.oak.stats.Clock)1