test_class.file: misc/diff/src/test/java/org/openscience/cdk/tools/diff/AtomTypeDiffTest.java
test_class.identifier: AtomTypeDiffTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testDifference() {
          IAtomType element1 = mock(IAtomType.class);
          IAtomType element2 = mock(IAtomType.class);
          when(element1.getHybridization()).thenReturn(PLANAR3);
          when(element2.getHybridization()).thenReturn(SP3);
  
          IDifference difference = AtomTypeDiff.difference(element1, element2);
          Assert.assertNotNull(difference);
      }
test_case.class_method_signature: AtomTypeDiffTest.testDifference()
test_case.full_signature: @Test public void testDifference()
test_case.identifier: testDifference
test_case.invocations: mock mock thenReturn when getHybridization thenReturn when getHybridization 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/AtomTypeDiff.java
focal_class.identifier: AtomTypeDiff
focal_class.class_method_signature: AtomTypeDiff.AtomTypeDiff()
focal_class.full_signature: private  AtomTypeDiff()
focal_class.identifier: AtomTypeDiff
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  AtomTypeDiff()
focal_class.class_method_signature: AtomTypeDiff.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: AtomTypeDiff.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 IAtomType && second instanceof IAtomType)) {
              return null;
          }
          IAtomType firstElem = (IAtomType) first;
          IAtomType secondElem = (IAtomType) second;
          ChemObjectDifference totalDiff = new ChemObjectDifference("AtomTypeDiff");
          totalDiff.addChild(StringDifference.construct("N", firstElem.getAtomTypeName(), secondElem.getAtomTypeName()));
          totalDiff.addChild(BondOrderDifference.construct("MBO", firstElem.getMaxBondOrder(),
                  secondElem.getMaxBondOrder()));
          totalDiff
                  .addChild(DoubleDifference.construct("BOS", firstElem.getBondOrderSum(), secondElem.getBondOrderSum()));
          totalDiff
                  .addChild(IntegerDifference.construct("FC", firstElem.getFormalCharge(), secondElem.getFormalCharge()));
          totalDiff.addChild(AtomTypeHybridizationDifference.construct("H", firstElem.getHybridization(),
                  secondElem.getHybridization()));
          totalDiff.addChild(IntegerDifference.construct("NC", firstElem.getFormalNeighbourCount(),
                  secondElem.getFormalNeighbourCount()));
          totalDiff.addChild(DoubleDifference.construct("CR", firstElem.getCovalentRadius(),
                  secondElem.getCovalentRadius()));
          totalDiff.addChild(IntegerDifference.construct("V", firstElem.getValency(), secondElem.getValency()));
          totalDiff.addChild(IsotopeDiff.difference(first, second));
          if (totalDiff.childCount() > 0) {
              return totalDiff;
          } else {
              return null;
          }
      }
focal_method.class_method_signature: AtomTypeDiff.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 getAtomTypeName getAtomTypeName addChild construct getMaxBondOrder getMaxBondOrder addChild construct getBondOrderSum getBondOrderSum addChild construct getFormalCharge getFormalCharge addChild construct getHybridization getHybridization addChild construct getFormalNeighbourCount getFormalNeighbourCount addChild construct getCovalentRadius getCovalentRadius addChild construct getValency getValency 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)