AromaticAtomsCountDescriptor extends AbstractMolecularDescriptor implements IMolecularDescriptor { public AromaticAtomsCountDescriptor() {} AromaticAtomsCountDescriptor(); @Override DescriptorSpecification getSpecification(); @Override void setParameters(Object[] params); @Override Object[] getParameters(); @Override String[] getDescriptorNames(); @Override DescriptorValue calculate(IAtomContainer atomContainer); @Override IDescriptorResult getDescriptorResultType(); @Override String[] getParameterNames(); @Override Object getParameterType(String name);  }
@Test public void testAromaticAtomsCountDescriptor() throws java.lang.Exception { Object[] params = {true}; descriptor.setParameters(params); SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance()); IAtomContainer mol = sp.parseSmiles("CCOc1ccccc1"); Assert.assertEquals(6, ((IntegerResult) descriptor.calculate(mol).getValue()).intValue()); }