test_class.file: legacy/src/test/java/org/openscience/cdk/isomorphism/matchers/smarts/SmallestRingAtomTest.java
test_class.identifier: SmallestRingAtomTest
test_case.body: @Test
      public void matches() {
          SmallestRingAtom matcher = new SmallestRingAtom(5, mock(IChemObjectBuilder.class));
          IAtom atom = mock(IAtom.class);
          when(atom.getProperty(SMARTSAtomInvariants.KEY)).thenReturn(
                  new SMARTSAtomInvariants(mock(IAtomContainer.class), 0, 0, Collections.<Integer> singleton(5), 0, 0, 0,
                          0));
          assertTrue(matcher.matches(atom));
      }
test_case.class_method_signature: SmallestRingAtomTest.matches()
test_case.full_signature: @Test public void matches()
test_case.identifier: matches
test_case.invocations: mock mock thenReturn when getProperty mock singleton assertTrue matches
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void matches()
focal_class.declarator: ringSize
focal_class.modifier: private
focal_class.original_string: private int ringSize;
focal_class.type: int
focal_class.var_name: ringSize
focal_class.file: legacy/src/main/java/org/openscience/cdk/isomorphism/matchers/smarts/SmallestRingAtom.java
focal_class.identifier: SmallestRingAtom
focal_class.class_method_signature: SmallestRingAtom.SmallestRingAtom(int ringSize, IChemObjectBuilder builder)
focal_class.full_signature: public  SmallestRingAtom(int ringSize, IChemObjectBuilder builder)
focal_class.identifier: SmallestRingAtom
focal_class.modifiers: public
focal_class.parameters: (int ringSize, IChemObjectBuilder builder)
focal_class.signature:  SmallestRingAtom(int ringSize, IChemObjectBuilder builder)
focal_class.class_method_signature: SmallestRingAtom.matches(IAtom atom)
focal_class.full_signature: @Override public boolean matches(IAtom atom)
focal_class.identifier: matches
focal_class.modifiers: @Override public
focal_class.parameters: (IAtom atom)
focal_class.return: boolean
focal_class.signature: boolean matches(IAtom atom)
focal_class.superclass: extends SMARTSAtom
focal_method.body: @Override
      public boolean matches(IAtom atom) {
          return ringSize < 0 ? invariants(atom).ringConnectivity() > 0
                              : invariants(atom).ringSize().contains(ringSize);
      }
focal_method.class_method_signature: SmallestRingAtom.matches(IAtom atom)
focal_method.full_signature: @Override public boolean matches(IAtom atom)
focal_method.identifier: matches
focal_method.invocations: ringConnectivity invariants contains ringSize invariants
focal_method.modifiers: @Override public
focal_method.parameters: (IAtom atom)
focal_method.return: boolean
focal_method.signature: boolean matches(IAtom atom)