ForceFieldConfigurator { public String removeAromaticityFlagsFromHoseCode(String hoseCode) { String hosecode = ""; for (int i = 0; i < hoseCode.length(); i++) { if (hoseCode.charAt(i) != '*') { hosecode = hosecode + hoseCode.charAt(i); } } return hosecode; } ForceFieldConfigurator(); void setInputStream(InputStream ins); String[] getFfTypes(); boolean checkForceFieldType(String ffname); void setForceFieldConfigurator(String ffname, IChemObjectBuilder builder); void setAtomTypes(List<IAtomType> atomtypes); void setParameters(Map<String, Object> parameterset); void setMM2Parameters(IChemObjectBuilder builder); void setMMFF94Parameters(IChemObjectBuilder builder); List<IAtomType> getAtomTypes(); Map<String, Object> getParameterSet(); IRingSet assignAtomTyps(IAtomContainer molecule); IAtom configureAtom(IAtom atom, String hoseCode, boolean _boolean); IAtom configureMM2BasedAtom(IAtom atom, String hoseCode, boolean hetRing); String removeAromaticityFlagsFromHoseCode(String hoseCode); IAtom configureMMFF94BasedAtom(IAtom atom, String hoseCode, boolean isInHetRing);  }
@Test public void testRemoveAromaticityFlagsFromHoseCode_String() { String hosecode1 = "***HO*SE*CODE***"; String cleanHoseCode = forceFieldConfigurator.removeAromaticityFlagsFromHoseCode(hosecode1); assertEquals("HOSECODE", cleanHoseCode); String hosecode2 = "HOSECODE"; cleanHoseCode = forceFieldConfigurator.removeAromaticityFlagsFromHoseCode(hosecode2); assertEquals("HOSECODE", cleanHoseCode); }