Package eu.admire.dispel.statements

Examples of eu.admire.dispel.statements.StatementsFactory


public class UtilityTest {

  @Test
  public void addAsLastNonSubmitStatementTest() {
   
    StatementsFactory fac = StatementsFactory.eINSTANCE;
    List<Statement> l = new ArrayList<Statement>();
    l.add(fac.createEmptyStatement());
    l.add(fac.createEmptyStatement());
    l.add(fac.createSubmitStatement());
   
    Utility.addAsLastNonSubmitStatement(fac.createConnectionStatement(), l);
    assertEquals(4, l.size());
    assertTrue(l.get(3) instanceof SubmitStatement);
    assertTrue(l.get(2) instanceof ConnectionStatement);
   
  }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.statements.StatementsFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.