Package org.allspice.structured.statement

Examples of org.allspice.structured.statement.IfThenElseStatement


public class TestIfThenElse extends MyTestCase {
  public static interface IfTest {
    public int meth(boolean arg0) ;
  }
  public void test1() throws Exception {
    IfTest obj = makeObject(IfTest.class,new IfThenElseStatement(
        ARG0,
        new FIFO<Statement>(new ReturnStatement(new ConstExpr(Integer.valueOf(3),null),null)),
        new FIFO<Statement>(new ReturnStatement(new ConstExpr(Integer.valueOf(2),null),null)),
        null)) ;
    assertEquals(obj.meth(true),3) ;
View Full Code Here

TOP

Related Classes of org.allspice.structured.statement.IfThenElseStatement

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.