10241025102610271028102910301031103210331034
setupLex(Parser.BRACECLOSE); setupLex(0); // expectations MethodDef mth = new MethodDef(); mth.name = "doSomething"; mth.returns = "com.blah.Something"; mth.modifiers.add("public"); mth.modifiers.add("protected"); mth.modifiers.add("private");
10651066106710681069107010711072107310741075
setupLex(Parser.BRACECLOSE); setupLex(0); // expectations MethodDef mth = new MethodDef(); mth.name = "doSomething"; mth.returns = "void"; FieldDef p1 = new FieldDef(); p1.name = "numberOfTimes"; p1.type = "int";
11051106110711081109111011111112111311141115
setupLex(Parser.BRACECLOSE); setupLex(0); // expectations MethodDef mth = new MethodDef(); mth.name = "doSomething"; mth.returns = "void"; FieldDef p1 = new FieldDef(); p1.name = "numberOfTimes"; p1.type = "java.lang.String";
11441145114611471148114911501151115211531154
11901191119211931194119511961197119811991200
12361237123812391240124112421243124412451246
12741275127612771278127912801281128212831284
setupLex(Parser.BRACECLOSE); setupLex(0); // expectations MethodDef mth = new MethodDef(); mth.name = "doSomething"; mth.returns = "void"; mth.exceptions.add("IOException"); builder.addExpectedAddMethodValues(mth);
13091310131113121313131413151316131713181319
setupLex(Parser.BRACECLOSE); setupLex(0); // expectations MethodDef mth = new MethodDef(); mth.name = "doSomething"; mth.returns = "void"; mth.exceptions.add("IOException"); mth.exceptions.add("MyException"); builder.addExpectedAddMethodValues(mth);
13471348134913501351135213531354135513561357
setupLex(Parser.BRACECLOSE); setupLex(0); // expectations MethodDef mth = new MethodDef(); mth.name = "doSomething"; mth.returns = "void"; mth.exceptions.add("IOException"); mth.exceptions.add("MyException"); mth.exceptions.add("AnotherException");
13861387138813891390139113921393139413951396
setupLex(Parser.BRACECLOSE); setupLex(0); // expectations MethodDef mth = new MethodDef(); mth.name = "doSomething"; mth.returns = "void"; mth.exceptions.add("java.io.IOException"); builder.addExpectedAddMethodValues(mth);