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 Class |
classForName(String name) |
String |
execTest() |
protected ClassLoader |
getGrammarClassLoader() |
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
ClassNotFoundException
public String execTest() throws IOException
IOException
protected gUnitTestResult runLexer(String lexerName, String testRuleName, gUnitTestInput testInput) throws Exception
Exception
protected gUnitTestResult runParser(String parserName, String lexerName, String testRuleName, gUnitTestInput testInput) throws Exception
Exception
protected gUnitTestResult runTreeParser(String parserName, String lexerName, String testRuleName, String testTreeRuleName, gUnitTestInput testInput) throws Exception
Exception
public void onPass(ITestCase passTest)
onPass
in interface ITestSuite
public void onFail(ITestCase failTest)
onFail
in interface ITestSuite
Copyright © 2014. All rights reserved.