public class gUnitExecutor extends Object implements ITestSuite
| Modifier and Type | Field and Description |
|---|---|
List<AbstractTest> |
failures |
GrammarInfo |
grammarInfo |
List<AbstractTest> |
invalids |
int |
numOfFailure |
int |
numOfInvalidInput |
int |
numOfSuccess |
int |
numOfTest |
| Constructor and Description |
|---|
gUnitExecutor(GrammarInfo grammarInfo,
ClassLoader grammarClassLoader,
String testsuiteDir) |
gUnitExecutor(GrammarInfo grammarInfo,
String testsuiteDir) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkForValidInput(org.antlr.runtime.CommonTokenStream tokens,
PrintStream ps2)
Verify the input has been properly consumed
|
protected Class<?> |
classForName(String name) |
String |
execTest() |
protected ClassLoader |
getGrammarClassLoader() |
protected void |
handleUnexpectedException(Exception e) |
void |
onFail(ITestCase failTest) |
void |
onPass(ITestCase passTest) |
protected gUnitTestResult |
runLexer(String lexerName,
String testRuleName,
gUnitTestInput testInput) |
protected gUnitTestResult |
runParser(String parserName,
String lexerName,
String testRuleName,
gUnitTestInput testInput) |
protected gUnitTestResult |
runTreeParser(String parserName,
String lexerName,
String testRuleName,
String testTreeRuleName,
gUnitTestInput testInput) |
public GrammarInfo grammarInfo
public int numOfTest
public int numOfSuccess
public int numOfFailure
public int numOfInvalidInput
public List<AbstractTest> failures
public List<AbstractTest> invalids
public gUnitExecutor(GrammarInfo grammarInfo, String testsuiteDir)
public gUnitExecutor(GrammarInfo grammarInfo, ClassLoader grammarClassLoader, String testsuiteDir)
protected ClassLoader getGrammarClassLoader()
protected final Class<?> classForName(String name) throws ClassNotFoundException
ClassNotFoundExceptionpublic String execTest() throws IOException
IOExceptionprotected gUnitTestResult runLexer(String lexerName, String testRuleName, gUnitTestInput testInput) throws Exception
Exceptionprotected gUnitTestResult runParser(String parserName, String lexerName, String testRuleName, gUnitTestInput testInput) throws Exception
Exceptionprotected gUnitTestResult runTreeParser(String parserName, String lexerName, String testRuleName, String testTreeRuleName, gUnitTestInput testInput) throws Exception
Exceptionprotected void checkForValidInput(org.antlr.runtime.CommonTokenStream tokens, PrintStream ps2)
public void onPass(ITestCase passTest)
onPass in interface ITestSuitepublic void onFail(ITestCase failTest)
onFail in interface ITestSuiteprotected void handleUnexpectedException(Exception e)
Copyright © 1992-2013 ANTLR. All Rights Reserved.