BasicSceneGenerator implements IGenerator<IAtomContainer> { @Override public IRenderingElement generate(IAtomContainer ac, RendererModel model) { return new ElementGroup(); } BasicSceneGenerator(); @Override IRenderingElement generate(IAtomContainer ac, RendererModel model); @Override List<IGeneratorParameter<?>> getParameters();  }
@Test public void testSingleAtom() { IAtomContainer singleAtom = makeSingleAtom(); IRenderingElement root = generator.generate(singleAtom, model); List<IRenderingElement> elements = elementUtil.getAllSimpleElements(root); Assert.assertEquals(0, elements.size()); }
@Test public void testSingleBond() { IAtomContainer container = makeSingleBond(); IRenderingElement root = generator.generate(container, model); List<IRenderingElement> elements = elementUtil.getAllSimpleElements(root); Assert.assertEquals(0, elements.size()); }
@Test public void testSquare() { IAtomContainer square = makeSquare(); IRenderingElement root = generator.generate(square, model); List<IRenderingElement> elements = elementUtil.getAllSimpleElements(root); Assert.assertEquals(0, elements.size()); Assert.assertEquals(new Point2d(0, 0), center(elements)); }