public abstract class gUnitBaseTest
extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
String |
lexerPath |
String |
packagePath |
String |
parserPath |
protected String |
stderr |
protected String |
stdout |
String |
treeAdaptorPath |
String |
treeParserPath |
| Constructor and Description |
|---|
gUnitBaseTest() |
| Modifier and Type | Method and Description |
|---|---|
Object |
examineExecResult(int tokenType,
Object retVal) |
String |
execLexer(String testRuleName,
int line,
String testInput,
boolean isFile) |
Object |
execParser(String testRuleName,
int line,
String testInput,
boolean isFile) |
Object |
execTreeParser(String testTreeRuleName,
String testRuleName,
String testInput,
boolean isFile) |
protected void |
handleUnexpectedException(Exception e) |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic String treeAdaptorPath
public String packagePath
public String lexerPath
public String parserPath
public String treeParserPath
protected String stdout
protected String stderr
public String execLexer(String testRuleName, int line, String testInput, boolean isFile) throws Exception
Exceptionpublic Object execParser(String testRuleName, int line, String testInput, boolean isFile) throws Exception
Exceptionpublic Object execTreeParser(String testTreeRuleName, String testRuleName, String testInput, boolean isFile) throws Exception
Exceptionprotected void handleUnexpectedException(Exception e)
Copyright © 1992-2013 ANTLR. All Rights Reserved.