|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.antlr.gunit.gUnitBaseTest
public abstract class gUnitBaseTest
All gUnit-generated JUnit class should extend this class which implements the essential methods for triggering ANTLR parser/tree walker
| Field Summary | |
|---|---|
String |
lexerPath
|
String |
packagePath
|
String |
parserPath
|
protected String |
stderr
|
protected String |
stdout
|
String |
treeAdaptorPath
|
String |
treeParserPath
|
| Constructor Summary | |
|---|---|
gUnitBaseTest()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
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, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String treeAdaptorPath
public String packagePath
public String lexerPath
public String parserPath
public String treeParserPath
protected String stdout
protected String stderr
| Constructor Detail |
|---|
public gUnitBaseTest()
| Method Detail |
|---|
public String execLexer(String testRuleName,
int line,
String testInput,
boolean isFile)
throws Exception
Exception
public Object execParser(String testRuleName,
int line,
String testInput,
boolean isFile)
throws Exception
Exception
public Object execTreeParser(String testTreeRuleName,
String testRuleName,
String testInput,
boolean isFile)
throws Exception
Exception
public Object examineExecResult(int tokenType,
Object retVal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||