test_class.file: misc/diff/src/test/java/org/openscience/cdk/tools/diff/ElementDiffTest.java
test_class.identifier: ElementDiffTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testDifference() {
          IElement element1 = mock(IElement.class);
          IElement element2 = mock(IElement.class);
          when(element1.getSymbol()).thenReturn("H");
          when(element2.getSymbol()).thenReturn("C");
  
          IDifference difference = ElementDiff.difference(element1, element2);
          Assert.assertNotNull(difference);
      }
test_case.class_method_signature: ElementDiffTest.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/ElementDiff.java
focal_class.identifier: ElementDiff
focal_class.class_method_signature: ElementDiff.ElementDiff()
focal_class.full_signature: private  ElementDiff()
focal_class.identifier: ElementDiff
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ElementDiff()
focal_class.class_method_signature: ElementDiff.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: ElementDiff.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 IElement && second instanceof IElement)) {
              return null;
          }
          IElement firstElem = (IElement) first;
          IElement secondElem = (IElement) second;
          ChemObjectDifference coDiff = new ChemObjectDifference("ElementDiff");
          coDiff.addChild(StringDifference.construct("S", firstElem.getSymbol(), secondElem.getSymbol()));
          coDiff.addChild(StringDifference.construct("ID", firstElem.getID(), secondElem.getID()));
          coDiff.addChild(IntegerDifference.construct("AN", firstElem.getAtomicNumber(), secondElem.getAtomicNumber()));
          coDiff.addChild(ChemObjectDiff.difference(first, second));
          if (coDiff.childCount() > 0) {
              return coDiff;
          } else {
              return null;
          }
      }
focal_method.class_method_signature: ElementDiff.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 getSymbol getSymbol addChild construct getID getID addChild construct getAtomicNumber getAtomicNumber 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)