BasicAtomGenerator implements IGenerator<IAtomContainer> { @Override public List<IGeneratorParameter<?>> getParameters() { return Arrays.asList(new IGeneratorParameter<?>[]{atomColor, atomColorer, atomRadius, colorByType, compactShape, isCompact, isKekule, showEndCarbons, showExplicitHydrogens}); } BasicAtomGenerator(); @Override IRenderingElement generate(IAtomContainer container, RendererModel model); IRenderingElement generate(IAtomContainer atomContainer, IAtom atom, RendererModel model); IRenderingElement generateCompactElement(IAtom atom, RendererModel model); AtomSymbolElement generateElement(IAtom atom, int alignment, RendererModel model); @Override List<IGeneratorParameter<?>> getParameters();  }
@Test public void getParametersTest() { List<IGeneratorParameter<?>> parameters = generator.getParameters(); containsParameterType(parameters, AtomColor.class); containsParameterType(parameters, AtomColorer.class); containsParameterType(parameters, AtomRadius.class); containsParameterType(parameters, ColorByType.class); containsParameterType(parameters, CompactShape.class); containsParameterType(parameters, CompactAtom.class); containsParameterType(parameters, KekuleStructure.class); containsParameterType(parameters, ShowEndCarbons.class); containsParameterType(parameters, ShowExplicitHydrogens.class); }