test_class.declarator: collectorProvider
test_class.original_string: ChangeCollectorProvider collectorProvider;
test_class.type: ChangeCollectorProvider
test_class.var_name: collectorProvider
test_class.declarator: contentRepository
test_class.modifier: private
test_class.original_string: private ContentRepository contentRepository;
test_class.type: ContentRepository
test_class.var_name: contentRepository
test_class.declarator: session
test_class.modifier: private
test_class.original_string: private ContentSession session;
test_class.type: ContentSession
test_class.var_name: session
test_class.declarator: recorder
test_class.modifier: private
test_class.original_string: private Recorder recorder;
test_class.type: Recorder
test_class.var_name: recorder
test_class.declarator: securityProvider
test_class.modifier: private
test_class.original_string: private SecurityProvider securityProvider;
test_class.type: SecurityProvider
test_class.var_name: securityProvider
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/observation/ChangeCollectorProviderTest.java
test_class.identifier: ChangeCollectorProviderTest
test_case.body: @Test
      public void testPathNotOverflown() throws Exception {
          Root root = session.getLatestRoot();
          Tree rootTree = root.getTree("/test");
          Set<String> expectedParentPaths = Sets.newHashSet();
          expectedParentPaths.add("/test");
          Set<String> expectedParentNodeNames = Sets.newHashSet();
          expectedParentNodeNames.add("test");
          Set<String> expectedParentNodeTypes = Sets.newHashSet();
          expectedParentNodeTypes.add("test:parentType");
          // do maxItems-1 iterations only, as the above already adds 1 item - to
          // avoid overflowing
          for (int i = 0; i < collectorProvider.getMaxItems() - 1; i++) {
              Tree aChild = rootTree.addChild("manychildren" + i);
              aChild.setProperty("aProperty", "foo");
              aChild.setProperty(JcrConstants.JCR_PRIMARYTYPE, "aChildPrimaryType" + i, Type.NAME);
              expectedParentPaths.add("/test/manychildren" + i);
              expectedParentNodeNames.add("manychildren" + i);
              expectedParentNodeTypes.add("aChildPrimaryType" + i);
          }
          root.commit();
          ChangeSet changeSet = getSingleChangeSet();
          assertMatches("parentPaths", changeSet.getParentPaths(), expectedParentPaths.toArray(new String[0]));
          assertMatches("parentNodeNames", changeSet.getParentNodeNames(),
                  expectedParentNodeNames.toArray(new String[0]));
          assertMatches("parentNodeTypes", changeSet.getParentNodeTypes(),
                  expectedParentNodeTypes.toArray(new String[0]));
          assertMatches("allNodeTypes", changeSet.getAllNodeTypes(),
                  expectedParentNodeTypes.toArray(new String[0]));
          assertMatches("propertyNames", changeSet.getPropertyNames(), JcrConstants.JCR_PRIMARYTYPE, "aProperty");
      }
test_case.class_method_signature: ChangeCollectorProviderTest.testPathNotOverflown()
test_case.full_signature: @Test public void testPathNotOverflown()
test_case.identifier: testPathNotOverflown
test_case.invocations: getLatestRoot getTree newHashSet add newHashSet add newHashSet add getMaxItems addChild setProperty setProperty add add add commit getSingleChangeSet assertMatches getParentPaths toArray assertMatches getParentNodeNames toArray assertMatches getParentNodeTypes toArray assertMatches getAllNodeTypes toArray assertMatches getPropertyNames
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPathNotOverflown()
focal_class.declarator: DEFAULT_MAX_ITEMS = 50
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_MAX_ITEMS = 50;
focal_class.type: int
focal_class.var_name: DEFAULT_MAX_ITEMS
focal_class.declarator: DEFAULT_MAX_PATH_DEPTH = 9
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_MAX_PATH_DEPTH = 9;
focal_class.type: int
focal_class.var_name: DEFAULT_MAX_PATH_DEPTH
focal_class.declarator: DEFAULT_ENABLED = true
focal_class.modifier: private static final
focal_class.original_string: private static final boolean DEFAULT_ENABLED = true;
focal_class.type: boolean
focal_class.var_name: DEFAULT_ENABLED
focal_class.declarator: TYPE = "changeCollectorProvider"
focal_class.modifier: public static final
focal_class.original_string: public static final String TYPE = "changeCollectorProvider";
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: LOG = LoggerFactory.getLogger(ChangeCollectorProvider.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(ChangeCollectorProvider.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: COMMIT_CONTEXT_OBSERVATION_CHANGESET = "oak.observation.changeSet"
focal_class.modifier: public static final
focal_class.original_string: public static final String COMMIT_CONTEXT_OBSERVATION_CHANGESET = "oak.observation.changeSet";
focal_class.type: String
focal_class.var_name: COMMIT_CONTEXT_OBSERVATION_CHANGESET
focal_class.declarator: maxItems = DEFAULT_MAX_ITEMS
focal_class.modifier: private
focal_class.original_string: private int maxItems = DEFAULT_MAX_ITEMS;
focal_class.type: int
focal_class.var_name: maxItems
focal_class.declarator: maxPathDepth = DEFAULT_MAX_PATH_DEPTH
focal_class.modifier: private
focal_class.original_string: private int maxPathDepth = DEFAULT_MAX_PATH_DEPTH;
focal_class.type: int
focal_class.var_name: maxPathDepth
focal_class.declarator: enabled = DEFAULT_ENABLED
focal_class.modifier: private
focal_class.original_string: private boolean enabled = DEFAULT_ENABLED;
focal_class.type: boolean
focal_class.var_name: enabled
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/ChangeCollectorProvider.java
focal_class.identifier: ChangeCollectorProvider
focal_class.class_method_signature: ChangeCollectorProvider.activate(final Configuration config)
focal_class.full_signature: @Activate protected void activate(final Configuration config)
focal_class.identifier: activate
focal_class.modifiers: @Activate protected
focal_class.parameters: (final Configuration config)
focal_class.return: void
focal_class.signature: void activate(final Configuration config)
focal_class.class_method_signature: ChangeCollectorProvider.modified(final Configuration config)
focal_class.full_signature: @Modified protected void modified(final Configuration config)
focal_class.identifier: modified
focal_class.modifiers: @Modified protected
focal_class.parameters: (final Configuration config)
focal_class.return: void
focal_class.signature: void modified(final Configuration config)
focal_class.class_method_signature: ChangeCollectorProvider.reconfig(final Configuration config)
focal_class.full_signature: private void reconfig(final Configuration config)
focal_class.identifier: reconfig
focal_class.modifiers: private
focal_class.parameters: (final Configuration config)
focal_class.return: void
focal_class.signature: void reconfig(final Configuration config)
focal_class.class_method_signature: ChangeCollectorProvider.setMaxPathDepth(int maxPathDepth)
focal_class.full_signature: protected void setMaxPathDepth(int maxPathDepth)
focal_class.identifier: setMaxPathDepth
focal_class.modifiers: protected
focal_class.parameters: (int maxPathDepth)
focal_class.return: void
focal_class.signature: void setMaxPathDepth(int maxPathDepth)
focal_class.class_method_signature: ChangeCollectorProvider.getMaxPathDepth()
focal_class.full_signature: protected int getMaxPathDepth()
focal_class.identifier: getMaxPathDepth
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMaxPathDepth()
focal_class.class_method_signature: ChangeCollectorProvider.setMaxItems(int maxItems)
focal_class.full_signature: protected void setMaxItems(int maxItems)
focal_class.identifier: setMaxItems
focal_class.modifiers: protected
focal_class.parameters: (int maxItems)
focal_class.return: void
focal_class.signature: void setMaxItems(int maxItems)
focal_class.class_method_signature: ChangeCollectorProvider.getMaxItems()
focal_class.full_signature: protected int getMaxItems()
focal_class.identifier: getMaxItems
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMaxItems()
focal_class.class_method_signature: ChangeCollectorProvider.getRootValidator(NodeState before, NodeState after, CommitInfo info)
focal_class.full_signature: @Override protected Validator getRootValidator(NodeState before, NodeState after, CommitInfo info)
focal_class.identifier: getRootValidator
focal_class.modifiers: @Override protected
focal_class.parameters: (NodeState before, NodeState after, CommitInfo info)
focal_class.return: Validator
focal_class.signature: Validator getRootValidator(NodeState before, NodeState after, CommitInfo info)
focal_class.superclass: extends ValidatorProvider
focal_method.body: protected int getMaxItems() {
          return this.maxItems;
      }
focal_method.class_method_signature: ChangeCollectorProvider.getMaxItems()
focal_method.full_signature: protected int getMaxItems()
focal_method.identifier: getMaxItems
focal_method.modifiers: protected
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int getMaxItems()