test_class.file: misc/diff/src/test/java/org/openscience/cdk/tools/diff/IsotopeDiffTest.java
test_class.identifier: IsotopeDiffTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testDifference() {
          IIsotope element1 = mock(IIsotope.class);
          IIsotope element2 = mock(IIsotope.class);
          when(element1.getSymbol()).thenReturn("H");
          when(element2.getSymbol()).thenReturn("C");
  
          IDifference difference = IsotopeDiff.difference(element1, element2);
          Assert.assertNotNull(difference);
      }
test_case.class_method_signature: IsotopeDiffTest.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/IsotopeDiff.java
focal_class.identifier: IsotopeDiff
focal_class.class_method_signature: IsotopeDiff.IsotopeDiff()
focal_class.full_signature: private  IsotopeDiff()
focal_class.identifier: IsotopeDiff
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  IsotopeDiff()
focal_class.class_method_signature: IsotopeDiff.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: IsotopeDiff.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 IIsotope && second instanceof IIsotope)) {
              return null;
          }
          IIsotope firstElem = (IIsotope) first;
          IIsotope secondElem = (IIsotope) second;
          ChemObjectDifference totalDiff = new ChemObjectDifference("IsotopeDiff");
          totalDiff.addChild(IntegerDifference.construct("MN", firstElem.getMassNumber(), secondElem.getMassNumber()));
          totalDiff.addChild(DoubleDifference.construct("EM", firstElem.getExactMass(), secondElem.getExactMass()));
          totalDiff.addChild(DoubleDifference.construct("AB", firstElem.getNaturalAbundance(),
                  secondElem.getNaturalAbundance()));
          totalDiff.addChild(ElementDiff.difference(first, second));
          if (totalDiff.childCount() > 0) {
              return totalDiff;
          } else {
              return null;
          }
      }
focal_method.class_method_signature: IsotopeDiff.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 getMassNumber getMassNumber addChild construct getExactMass getExactMass addChild construct getNaturalAbundance getNaturalAbundance 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)