| org.apache.tools.ant.BuildFileTest org.apache.tools.ant.taskdefs.optional.ANTLRTest
ANTLRTest | public class ANTLRTest extends BuildFileTest (Code) | | If you want to run tests, it is highly recommended
to download ANTLR (www.antlr.org), build the 'antlrall.jar' jar
with make antlr-all.jar and drop the jar (about 300KB) into
Ant lib.
- Running w/ the default antlr.jar (70KB) does not work (missing class)
Unless of course you specify the ANTLR classpath in your
system classpath. (see ANTLR install.html)
|
Method Summary | |
public void | setUp() | public void | tearDown() | public void | test1() | public void | test10() This test creates an html-ized version of the calculator grammar. | public void | test11() This is just a quick sanity check to run the diagnostic option and
make sure that it doesn't throw any funny exceptions. | public void | test12() This is just a quick sanity check to run the trace option and
make sure that it doesn't throw any funny exceptions. | public void | test13() This is just a quick sanity check to run all the rest of the
trace options (traceLexer, traceParser, and traceTreeWalker) to
make sure that they don't throw any funny exceptions. | public void | test2() | public void | test3() | public void | test4() | public void | test5() | public void | test6() | public void | test7() | public void | test8() This is a negative test for the super grammar (glib) option. | public void | test9() This is a positive test for the super grammar (glib) option. | public void | testNoRecompile() | public void | testNormalRecompile() | public void | testSupergrammarChangeRecompile() |
setUp | public void setUp()(Code) | | |
tearDown | public void tearDown()(Code) | | |
test1 | public void test1()(Code) | | |
test10 | public void test10()(Code) | | This test creates an html-ized version of the calculator grammar.
The sanity check is simply whether or not an html file was generated.
|
test11 | public void test11()(Code) | | This is just a quick sanity check to run the diagnostic option and
make sure that it doesn't throw any funny exceptions.
|
test12 | public void test12()(Code) | | This is just a quick sanity check to run the trace option and
make sure that it doesn't throw any funny exceptions.
|
test13 | public void test13()(Code) | | This is just a quick sanity check to run all the rest of the
trace options (traceLexer, traceParser, and traceTreeWalker) to
make sure that they don't throw any funny exceptions.
|
test2 | public void test2()(Code) | | |
test3 | public void test3()(Code) | | |
test4 | public void test4()(Code) | | |
test5 | public void test5()(Code) | | |
test6 | public void test6()(Code) | | |
test7 | public void test7()(Code) | | |
test8 | public void test8()(Code) | | This is a negative test for the super grammar (glib) option.
|
test9 | public void test9()(Code) | | This is a positive test for the super grammar (glib) option. ANTLR
will throw an error if everything is not correct.
|
testNoRecompile | public void testNoRecompile()(Code) | | |
testNormalRecompile | public void testNormalRecompile()(Code) | | |
testSupergrammarChangeRecompile | public void testSupergrammarChangeRecompile()(Code) | | |
Methods inherited from org.apache.tools.ant.BuildFileTest | public void assertDebuglogContaining(String substring)(Code)(Java Doc) public void assertLogContaining(String substring)(Code)(Java Doc) public void assertOutputContaining(String substring)(Code)(Java Doc) public void assertPropertyEquals(String property, String value)(Code)(Java Doc) public void assertPropertySet(String property)(Code)(Java Doc) public void assertPropertyUnset(String property)(Code)(Java Doc) public void configureProject(String filename) throws BuildException(Code)(Java Doc) public void configureProject(String filename, int logLevel) throws BuildException(Code)(Java Doc) public void executeTarget(String targetName)(Code)(Java Doc) public void expectBuildException(String target, String cause)(Code)(Java Doc) public void expectBuildExceptionContaining(String target, String cause, String contains)(Code)(Java Doc) public void expectDebuglog(String target, String log)(Code)(Java Doc) public void expectLog(String target, String log)(Code)(Java Doc) public void expectLogContaining(String target, String log)(Code)(Java Doc) public void expectOutput(String target, String output)(Code)(Java Doc) public void expectOutputAndError(String target, String output, String error)(Code)(Java Doc) public void expectPropertySet(String target, String property, String value)(Code)(Java Doc) public void expectPropertySet(String target, String property)(Code)(Java Doc) public void expectPropertyUnset(String target, String property)(Code)(Java Doc) public void expectSpecificBuildException(String target, String cause, String msg)(Code)(Java Doc) public BuildException getBuildException()(Code)(Java Doc) public String getError()(Code)(Java Doc) public String getFullLog()(Code)(Java Doc) public String getLog()(Code)(Java Doc) public String getOutput()(Code)(Java Doc) public Project getProject()(Code)(Java Doc) public File getProjectDir()(Code)(Java Doc) public URL getResource(String resource)(Code)(Java Doc) protected void tearDown() throws Exception(Code)(Java Doc)
|
|
|