test_class.file: misc/diff/src/test/java/org/openscience/cdk/tools/diff/ElectronContainerDiffTest.java
test_class.identifier: ElectronContainerDiffTest
test_class.superclass: extends CDKTestCase
test_case.body: @Test
      public void testDiff() {
          IElectronContainer ec1 = mock(IElectronContainer.class);
          IElectronContainer ec2 = mock(IElectronContainer.class);
          when(ec1.getElectronCount()).thenReturn(2);
          when(ec2.getElectronCount()).thenReturn(3);
  
          String result = ElectronContainerDiff.diff(ec1, ec2);
          Assert.assertNotNull(result);
          Assert.assertNotSame(0, result.length());
          assertContains(result, "ElectronContainerDiff");
          assertContains(result, "eCount");
          assertContains(result, "2/3");
      }
test_case.class_method_signature: ElectronContainerDiffTest.testDiff()
test_case.full_signature: @Test public void testDiff()
test_case.identifier: testDiff
test_case.invocations: mock mock thenReturn when getElectronCount thenReturn when getElectronCount diff assertNotNull assertNotSame length 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/ElectronContainerDiff.java
focal_class.identifier: ElectronContainerDiff
focal_class.class_method_signature: ElectronContainerDiff.ElectronContainerDiff()
focal_class.full_signature: private  ElectronContainerDiff()
focal_class.identifier: ElectronContainerDiff
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ElectronContainerDiff()
focal_class.class_method_signature: ElectronContainerDiff.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: ElectronContainerDiff.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: ElectronContainerDiff.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)