org.antlr.gunit
Class gUnitExecutor
java.lang.Object
org.antlr.gunit.gUnitExecutor
- All Implemented Interfaces:
- ITestSuite
- Direct Known Subclasses:
- NotifiedTestExecuter
public class gUnitExecutor
- extends java.lang.Object
- implements ITestSuite
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
grammarInfo
public GrammarInfo grammarInfo
numOfTest
public int numOfTest
numOfSuccess
public int numOfSuccess
numOfFailure
public int numOfFailure
numOfInvalidInput
public int numOfInvalidInput
failures
public java.util.List<AbstractTest> failures
invalids
public java.util.List<AbstractTest> invalids
gUnitExecutor
public gUnitExecutor(GrammarInfo grammarInfo,
java.lang.String testsuiteDir)
gUnitExecutor
public gUnitExecutor(GrammarInfo grammarInfo,
java.lang.ClassLoader grammarClassLoader,
java.lang.String testsuiteDir)
getGrammarClassLoader
protected java.lang.ClassLoader getGrammarClassLoader()
classForName
protected final java.lang.Class classForName(java.lang.String name)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
execTest
public java.lang.String execTest()
throws java.io.IOException
- Throws:
java.io.IOException
runLexer
protected gUnitTestResult runLexer(java.lang.String lexerName,
java.lang.String testRuleName,
gUnitTestInput testInput)
throws java.lang.Exception
- Throws:
java.lang.Exception
runParser
protected gUnitTestResult runParser(java.lang.String parserName,
java.lang.String lexerName,
java.lang.String testRuleName,
gUnitTestInput testInput)
throws java.lang.Exception
- Throws:
java.lang.Exception
runTreeParser
protected gUnitTestResult runTreeParser(java.lang.String parserName,
java.lang.String lexerName,
java.lang.String testRuleName,
java.lang.String testTreeRuleName,
gUnitTestInput testInput)
throws java.lang.Exception
- Throws:
java.lang.Exception
onPass
public void onPass(ITestCase passTest)
- Specified by:
onPass
in interface ITestSuite
onFail
public void onFail(ITestCase failTest)
- Specified by:
onFail
in interface ITestSuite
Copyright © 2013. All Rights Reserved.