test_class.file: misc/diff/src/test/java/org/openscience/cdk/tools/diff/ChemObjectDiffTest.java
test_class.identifier: ChemObjectDiffTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testDifference() {
          IChemObject atom1 = mock(IChemObject.class);
          IChemObject atom2 = mock(IChemObject.class);
          when(atom1.getFlags()).thenReturn(new boolean[]{false, false, false});
          when(atom2.getFlags()).thenReturn(new boolean[]{false, true, false});
  
          IDifference difference = ChemObjectDiff.difference(atom1, atom2);
          Assert.assertNotNull(difference);
      }
test_case.class_method_signature: ChemObjectDiffTest.testDifference()
test_case.full_signature: @Test public void testDifference()
test_case.identifier: testDifference
test_case.invocations: mock mock thenReturn when getFlags thenReturn when getFlags difference assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDifference()
focal_class.file: misc/diff/src/main/java/org/openscience/cdk/tools/diff/ChemObjectDiff.java
focal_class.identifier: ChemObjectDiff
focal_class.class_method_signature: ChemObjectDiff.ChemObjectDiff()
focal_class.full_signature: private  ChemObjectDiff()
focal_class.identifier: ChemObjectDiff
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ChemObjectDiff()
focal_class.class_method_signature: ChemObjectDiff.diff(IChemObject first, IChemObject second)
focal_class.full_signature: public static String diff(IChemObject first, IChemObject second)
focal_class.identifier: diff
focal_class.modifiers: public static
focal_class.parameters: (IChemObject first, IChemObject second)
focal_class.return: String
focal_class.signature: String diff(IChemObject first, IChemObject second)
focal_class.class_method_signature: ChemObjectDiff.difference(IChemObject first, IChemObject second)
focal_class.full_signature: public static IDifference difference(IChemObject first, IChemObject second)
focal_class.identifier: difference
focal_class.modifiers: public static
focal_class.parameters: (IChemObject first, IChemObject second)
focal_class.return: IDifference
focal_class.signature: IDifference difference(IChemObject first, IChemObject second)
focal_method.body: public static IDifference difference(IChemObject first, IChemObject second) {
          if (!(first instanceof IChemObject && second instanceof IChemObject)) {
              return null;
          }
          IChemObject firstElem = (IChemObject) first;
          IChemObject secondElem = (IChemObject) second;
          ChemObjectDifference coDiff = new ChemObjectDifference("ChemObjectDiff");
          // Compare flags
          boolean[] firstFlags = firstElem.getFlags();
          boolean[] secondFlags = secondElem.getFlags();
          coDiff.addChild(BooleanArrayDifference.construct("flag", firstFlags, secondFlags));
          if (coDiff.childCount() > 0) {
              return coDiff;
          } else {
              return null;
          }
      }
focal_method.class_method_signature: ChemObjectDiff.difference(IChemObject first, IChemObject second)
focal_method.full_signature: public static IDifference difference(IChemObject first, IChemObject second)
focal_method.identifier: difference
focal_method.invocations: getFlags getFlags addChild construct childCount
focal_method.modifiers: public static
focal_method.parameters: (IChemObject first, IChemObject second)
focal_method.return: IDifference
focal_method.signature: IDifference difference(IChemObject first, IChemObject second)