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 testDifference() {
          IElectronContainer ec1 = mock(IElectronContainer.class);
          IElectronContainer ec2 = mock(IElectronContainer.class);
          when(ec1.getElectronCount()).thenReturn(2);
          when(ec2.getElectronCount()).thenReturn(3);
  
          IDifference difference = ElectronContainerDiff.difference(ec1, ec2);
          Assert.assertNotNull(difference);
      }
test_case.class_method_signature: ElectronContainerDiffTest.testDifference()
test_case.full_signature: @Test public void testDifference()
test_case.identifier: testDifference
test_case.invocations: mock mock thenReturn when getElectronCount thenReturn when getElectronCount 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/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 IDifference difference(IChemObject first, IChemObject second) {
          if (!(first instanceof IElectronContainer && second instanceof IElectronContainer)) {
              return null;
          }
          IElectronContainer firstEC = (IElectronContainer) first;
          IElectronContainer secondEC = (IElectronContainer) second;
          IDifferenceList totalDiff = new ChemObjectDifference("ElectronContainerDiff");
          totalDiff.addChild(IntegerDifference.construct("eCount", firstEC.getElectronCount(),
                  secondEC.getElectronCount()));
          totalDiff.addChild(ChemObjectDiff.difference(first, second));
          if (totalDiff.childCount() > 0) {
              return totalDiff;
          } else {
              return null;
          }
      }
focal_method.class_method_signature: ElectronContainerDiff.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 getElectronCount getElectronCount 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)