public class TestSwitch extends MyTestCase {
public static interface SwitchTest {
public int meth(int arg0) ;
}
public void test1() throws Exception {
SwitchTest obj = makeObject(SwitchTest.class,new SwitchStatement(ARG0,
new FIFO<Statement>(
new CaseStatement(new ConstExpr(Integer.valueOf(1),null),null),
new ReturnStatement(new ConstExpr(Integer.valueOf(2),null),null),
new CaseStatement(new ConstExpr(Integer.valueOf(0),null),null),
new ReturnStatement(new ConstExpr(Integer.valueOf(0),null),null),