test_class.file: misc/diff/src/test/java/org/openscience/cdk/tools/diff/AtomDiffTest.java
test_class.identifier: AtomDiffTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testDifference() {
          IAtom atom1 = mock(IAtom.class);
          IAtom atom2 = mock(IAtom.class);
          when(atom1.getSymbol()).thenReturn("H");
          when(atom2.getSymbol()).thenReturn("C");
  
          IDifference difference = AtomDiff.difference(atom1, atom2);
          Assert.assertNotNull(difference);
      }
test_case.class_method_signature: AtomDiffTest.testDifference()
test_case.full_signature: @Test public void testDifference()
test_case.identifier: testDifference
test_case.invocations: mock mock thenReturn when getSymbol thenReturn when getSymbol 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/AtomDiff.java
focal_class.identifier: AtomDiff
focal_class.class_method_signature: AtomDiff.AtomDiff()
focal_class.full_signature: private  AtomDiff()
focal_class.identifier: AtomDiff
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  AtomDiff()
focal_class.class_method_signature: AtomDiff.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: AtomDiff.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 IAtom && second instanceof IAtom)) {
              return null;
          }
          IAtom firstElem = (IAtom) first;
          IAtom secondElem = (IAtom) second;
          ChemObjectDifference totalDiff = new ChemObjectDifference("AtomDiff");
          totalDiff.addChild(IntegerDifference.construct("H", firstElem.getImplicitHydrogenCount(),
                  secondElem.getImplicitHydrogenCount()));
          totalDiff
                  .addChild(IntegerDifference.construct("SP", firstElem.getStereoParity(), secondElem.getStereoParity()));
          totalDiff.addChild(Point2dDifference.construct("2D", firstElem.getPoint2d(), secondElem.getPoint2d()));
          totalDiff.addChild(Point3dDifference.construct("3D", firstElem.getPoint3d(), secondElem.getPoint3d()));
          totalDiff.addChild(Point3dDifference.construct("F3D", firstElem.getFractionalPoint3d(),
                  secondElem.getFractionalPoint3d()));
          totalDiff.addChild(DoubleDifference.construct("C", firstElem.getCharge(), secondElem.getCharge()));
          totalDiff.addChild(AtomTypeDiff.difference(first, second));
          if (totalDiff.childCount() > 0) {
              return totalDiff;
          } else {
              return null;
          }
      }
focal_method.class_method_signature: AtomDiff.difference(IChemObject first, IChemObject second)
focal_method.full_signature: public static IDifference difference(IChemObject first, IChemObject second)
focal_method.identifier: difference
focal_method.invocations: addChild construct getImplicitHydrogenCount getImplicitHydrogenCount addChild construct getStereoParity getStereoParity addChild construct getPoint2d getPoint2d addChild construct getPoint3d getPoint3d addChild construct getFractionalPoint3d getFractionalPoint3d addChild construct getCharge getCharge addChild difference 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)