test_class.file: misc/diff/src/test/java/org/openscience/cdk/tools/diff/LonePairDiffTest.java
test_class.identifier: LonePairDiffTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testDifference() {
          IAtom carbon = mock(IAtom.class);
          IAtom oxygen = mock(IAtom.class);
  
          when(carbon.getSymbol()).thenReturn("C");
          when(oxygen.getSymbol()).thenReturn("O");
  
          ILonePair bond1 = mock(ILonePair.class);
          ILonePair bond2 = mock(ILonePair.class);
  
          when(bond1.getAtom()).thenReturn(carbon);
          when(bond2.getAtom()).thenReturn(oxygen);
  
          IDifference difference = LonePairDiff.difference(bond1, bond2);
          Assert.assertNotNull(difference);
      }
test_case.class_method_signature: LonePairDiffTest.testDifference()
test_case.full_signature: @Test public void testDifference()
test_case.identifier: testDifference
test_case.invocations: mock mock thenReturn when getSymbol thenReturn when getSymbol mock mock thenReturn when getAtom thenReturn when getAtom 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/LonePairDiff.java
focal_class.identifier: LonePairDiff
focal_class.class_method_signature: LonePairDiff.LonePairDiff()
focal_class.full_signature: private  LonePairDiff()
focal_class.identifier: LonePairDiff
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  LonePairDiff()
focal_class.class_method_signature: LonePairDiff.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: LonePairDiff.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 ILonePair && second instanceof ILonePair)) {
              return null;
          }
          ILonePair firstB = (ILonePair) first;
          ILonePair secondB = (ILonePair) second;
          IDifferenceList totalDiff = new ChemObjectDifference("LonePairDiff");
          totalDiff.addChild(AtomDiff.difference(firstB.getAtom(), secondB.getAtom()));
          totalDiff.addChild(ElectronContainerDiff.difference(first, second));
          if (totalDiff.childCount() > 0) {
              return totalDiff;
          } else {
              return null;
          }
      }
focal_method.class_method_signature: LonePairDiff.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 difference getAtom getAtom 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)