test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/CancelableDiffTest.java
test_class.identifier: CancelableDiffTest
test_case.body: @Test
      public void testChildNodeChangedInterruptible() throws Throwable {
          NodeState before = mock(NodeState.class);
          NodeState after = mock(NodeState.class);
  
          NodeStateDiff wrapped = mock(NodeStateDiff.class);
          doReturn(true).when(wrapped).childNodeChanged("name", before, after);
  
          assertTrue(newCancelableDiff(wrapped, false).childNodeChanged("name", before, after));
          assertFalse(newCancelableDiff(wrapped, true).childNodeChanged("name", before, after));
      }
test_case.class_method_signature: CancelableDiffTest.testChildNodeChangedInterruptible()
test_case.full_signature: @Test public void testChildNodeChangedInterruptible()
test_case.identifier: testChildNodeChangedInterruptible
test_case.invocations: mock mock mock childNodeChanged when doReturn assertTrue childNodeChanged newCancelableDiff assertFalse childNodeChanged newCancelableDiff
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testChildNodeChangedInterruptible()
focal_class.declarator: delegate
focal_class.modifier: private final
focal_class.original_string: private final NodeStateDiff delegate;
focal_class.type: NodeStateDiff
focal_class.var_name: delegate
focal_class.declarator: canceled
focal_class.modifier: private final
focal_class.original_string: private final Supplier<Boolean> canceled;
focal_class.type: Supplier<Boolean>
focal_class.var_name: canceled
focal_class.file: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/CancelableDiff.java
focal_class.identifier: CancelableDiff
focal_class.interfaces: implements NodeStateDiff
focal_class.class_method_signature: CancelableDiff.CancelableDiff(NodeStateDiff delegate, Supplier<Boolean> canceled)
focal_class.full_signature: public  CancelableDiff(NodeStateDiff delegate, Supplier<Boolean> canceled)
focal_class.identifier: CancelableDiff
focal_class.modifiers: public
focal_class.parameters: (NodeStateDiff delegate, Supplier<Boolean> canceled)
focal_class.signature:  CancelableDiff(NodeStateDiff delegate, Supplier<Boolean> canceled)
focal_class.class_method_signature: CancelableDiff.propertyAdded(PropertyState after)
focal_class.full_signature: @Override public final boolean propertyAdded(PropertyState after)
focal_class.identifier: propertyAdded
focal_class.modifiers: @Override public final
focal_class.parameters: (PropertyState after)
focal_class.return: boolean
focal_class.signature: boolean propertyAdded(PropertyState after)
focal_class.class_method_signature: CancelableDiff.propertyChanged(PropertyState before, PropertyState after)
focal_class.full_signature: @Override public final boolean propertyChanged(PropertyState before, PropertyState after)
focal_class.identifier: propertyChanged
focal_class.modifiers: @Override public final
focal_class.parameters: (PropertyState before, PropertyState after)
focal_class.return: boolean
focal_class.signature: boolean propertyChanged(PropertyState before, PropertyState after)
focal_class.class_method_signature: CancelableDiff.propertyDeleted(PropertyState before)
focal_class.full_signature: @Override public final boolean propertyDeleted(PropertyState before)
focal_class.identifier: propertyDeleted
focal_class.modifiers: @Override public final
focal_class.parameters: (PropertyState before)
focal_class.return: boolean
focal_class.signature: boolean propertyDeleted(PropertyState before)
focal_class.class_method_signature: CancelableDiff.childNodeAdded(String name, NodeState after)
focal_class.full_signature: @Override public final boolean childNodeAdded(String name, NodeState after)
focal_class.identifier: childNodeAdded
focal_class.modifiers: @Override public final
focal_class.parameters: (String name, NodeState after)
focal_class.return: boolean
focal_class.signature: boolean childNodeAdded(String name, NodeState after)
focal_class.class_method_signature: CancelableDiff.childNodeChanged(String name, NodeState before, NodeState after)
focal_class.full_signature: @Override public final boolean childNodeChanged(String name, NodeState before, NodeState after)
focal_class.identifier: childNodeChanged
focal_class.modifiers: @Override public final
focal_class.parameters: (String name, NodeState before, NodeState after)
focal_class.return: boolean
focal_class.signature: boolean childNodeChanged(String name, NodeState before, NodeState after)
focal_class.class_method_signature: CancelableDiff.childNodeDeleted(String name, NodeState before)
focal_class.full_signature: @Override public final boolean childNodeDeleted(String name, NodeState before)
focal_class.identifier: childNodeDeleted
focal_class.modifiers: @Override public final
focal_class.parameters: (String name, NodeState before)
focal_class.return: boolean
focal_class.signature: boolean childNodeDeleted(String name, NodeState before)
focal_method.body: @Override
      public final boolean childNodeChanged(String name, NodeState before, NodeState after) {
          if (canceled.get()) {
              return false;
          }
  
          return delegate.childNodeChanged(name, before, after);
      }
focal_method.class_method_signature: CancelableDiff.childNodeChanged(String name, NodeState before, NodeState after)
focal_method.full_signature: @Override public final boolean childNodeChanged(String name, NodeState before, NodeState after)
focal_method.identifier: childNodeChanged
focal_method.invocations: get childNodeChanged
focal_method.modifiers: @Override public final
focal_method.parameters: (String name, NodeState before, NodeState after)
focal_method.return: boolean
focal_method.signature: boolean childNodeChanged(String name, NodeState before, NodeState after)