@Test public void testSingleBond() { IAtomContainer container = makeSingleBond(); // generate the single line element IRenderingElement root = generator.generate(container, model); List<IRenderingElement> elements = elementUtil.getAllSimpleElements(root); Assert.assertEquals(1, elements.size()); // test that the endpoints are distinct LineElement line = (LineElement) elements.get(0); Assert.assertNotSame(0, AbstractGeneratorTest.length(line)); }
@Before public void setup() { super.setup(); this.generator = new BasicGenerator(); model.registerParameters(generator); }