test_class.file: misc/diff/src/test/java/org/openscience/cdk/tools/diff/AtomContainerDiffTest.java
test_class.identifier: AtomContainerDiffTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testDiff() {
  
          IAtom carbon = mock(IAtom.class);
          IAtom oxygen = mock(IAtom.class);
  
          when(carbon.getSymbol()).thenReturn("C");
          when(oxygen.getSymbol()).thenReturn("O");
  
          IBond b1 = mock(IBond.class);
          IBond b2 = mock(IBond.class);
  
          when(b1.getOrder()).thenReturn(IBond.Order.SINGLE);
          when(b2.getOrder()).thenReturn(IBond.Order.DOUBLE);
  
          when(b1.getAtomCount()).thenReturn(2);
          when(b2.getAtomCount()).thenReturn(2);
  
          when(b1.getBegin()).thenReturn(carbon);
          when(b1.getEnd()).thenReturn(carbon);
          when(b2.getBegin()).thenReturn(carbon);
          when(b2.getEnd()).thenReturn(oxygen);
  
          IAtomContainer container1 = mock(IAtomContainer.class);
          IAtomContainer container2 = mock(IAtomContainer.class);
          when(container1.getElectronContainerCount()).thenReturn(1);
          when(container2.getElectronContainerCount()).thenReturn(1);
          when(container1.getElectronContainer(0)).thenReturn(b1);
          when(container2.getElectronContainer(0)).thenReturn(b2);
  
          String result = AtomContainerDiff.diff(container1, container2);
          Assert.assertNotNull(result);
          Assert.assertNotSame(0, result.length());
          assertContains(result, "AtomContainerDiff");
          assertContains(result, "BondDiff");
          assertContains(result, "SINGLE/DOUBLE");
          assertContains(result, "AtomDiff");
          assertContains(result, "C/O");
      }
test_case.class_method_signature: AtomContainerDiffTest.testDiff()
test_case.full_signature: @Test public void testDiff()
test_case.identifier: testDiff
test_case.invocations: mock mock thenReturn when getSymbol thenReturn when getSymbol mock mock thenReturn when getOrder thenReturn when getOrder thenReturn when getAtomCount thenReturn when getAtomCount thenReturn when getBegin thenReturn when getEnd thenReturn when getBegin thenReturn when getEnd mock mock thenReturn when getElectronContainerCount thenReturn when getElectronContainerCount thenReturn when getElectronContainer thenReturn when getElectronContainer diff assertNotNull assertNotSame length assertContains assertContains assertContains assertContains assertContains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDiff()
focal_class.file: misc/diff/src/main/java/org/openscience/cdk/tools/diff/AtomContainerDiff.java
focal_class.identifier: AtomContainerDiff
focal_class.class_method_signature: AtomContainerDiff.AtomContainerDiff()
focal_class.full_signature: private  AtomContainerDiff()
focal_class.identifier: AtomContainerDiff
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  AtomContainerDiff()
focal_class.class_method_signature: AtomContainerDiff.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: AtomContainerDiff.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 String diff(IChemObject first, IChemObject second) {
          IDifference diff = difference(first, second);
          if (diff == null) {
              return "";
          } else {
              return diff.toString();
          }
      }
focal_method.class_method_signature: AtomContainerDiff.diff(IChemObject first, IChemObject second)
focal_method.full_signature: public static String diff(IChemObject first, IChemObject second)
focal_method.identifier: diff
focal_method.invocations: difference toString
focal_method.modifiers: public static
focal_method.parameters: (IChemObject first, IChemObject second)
focal_method.return: String
focal_method.signature: String diff(IChemObject first, IChemObject second)