Package org.antlr.gunit
Class OutputTest
- java.lang.Object
-
- org.antlr.gunit.AbstractTest
-
- org.antlr.gunit.OutputTest
-
- All Implemented Interfaces:
ITestCase
public class OutputTest extends AbstractTest
OutputTest represents a test for not only standard output string, but also AST output which is actually a return value from a parser.
-
-
Field Summary
-
Fields inherited from class org.antlr.gunit.AbstractTest
actual, hasErrorMsg, header
-
-
Constructor Summary
Constructors Constructor Description OutputTest(org.antlr.runtime.Token token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExpected()java.lang.StringgetResult(gUnitTestResult testResult)java.lang.StringgetText()intgetType()-
Methods inherited from class org.antlr.gunit.AbstractTest
getActual, getActualResult, getExpectedResult, getHeader, getTestCaseIndex, getTestedRuleName, setActual, setHeader, setTestCaseIndex, setTestedRuleName
-
-
-
-
Method Detail
-
getText
public java.lang.String getText()
- Specified by:
getTextin classAbstractTest
-
getType
public int getType()
- Specified by:
getTypein classAbstractTest
-
getResult
public java.lang.String getResult(gUnitTestResult testResult)
- Specified by:
getResultin classAbstractTest
-
getExpected
public java.lang.String getExpected()
- Specified by:
getExpectedin classAbstractTest
-
-