示例#1
0
  @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));
  }
示例#2
0
 @Before
 public void setup() {
   super.setup();
   this.generator = new BasicGenerator();
   model.registerParameters(generator);
 }