579580581582583584585586587588589590
cls.extendz.add("mypackage.BaseClass"); cls.implementz.add("com.blah.AnInterface"); builder.addExpectedBeginClassValues(cls); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }
624625626627628629630631632633634635
cls.implementz.add("java.io.Serializable"); cls.implementz.add("Eatable"); builder.addExpectedBeginClassValues(cls); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }
651652653654655656657658659660661662
cls.modifiers.add("public"); cls.modifiers.add("final"); builder.addExpectedBeginClassValues(cls); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }
684685686687688689690691692693694695
cls.modifiers.add("final"); cls.modifiers.add("abstract"); builder.addExpectedBeginClassValues(cls); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }
733734735736737738739740741742743744
cls3.name = "Intf1"; cls3.type = ClassDef.INTERFACE; builder.addExpectedBeginClassValues(cls3); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }
770771772773774775776777778779780781
cls2.name = "Class2"; cls2.type = ClassDef.CLASS; builder.addExpectedBeginClassValues(cls2); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }
862863864865866867868869870871872873
builder.addExpectedAddJavaDocValues("javadoc8"); builder.addExpectedAddJavaDocValues("javadoc9"); builder.addExpectedAddJavaDocValues("javadoc10"); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }
893894895896897898899900901902903
mth.name = "doSomething"; mth.returns = "void"; builder.addExpectedAddMethodValues(mth); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }
923924925926927928929930931932933
953954955956957958959960961962963
mth.name = "doSomething"; mth.returns = "Something"; builder.addExpectedAddMethodValues(mth); // execute Parser parser = new Parser(lexer, builder); parser.parse(); // verify builder.verify(); }