org.antlr.gunit
Class OutputTest

java.lang.Object
  extended by org.antlr.gunit.AbstractTest
      extended by 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
OutputTest(Token token)
           
 
Method Summary
 java.lang.String getExpected()
           
 java.lang.String getResult(gUnitTestResult testResult)
           
 java.lang.String getText()
           
 int getType()
           
 
Methods inherited from class org.antlr.gunit.AbstractTest
getActual, getActualResult, getExpectedResult, getHeader, getTestCaseIndex, getTestedRuleName, setActual, setHeader, setTestCaseIndex, setTestedRuleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputTest

public OutputTest(Token token)
Method Detail

getText

public java.lang.String getText()
Specified by:
getText in class AbstractTest

getType

public int getType()
Specified by:
getType in class AbstractTest

getResult

public java.lang.String getResult(gUnitTestResult testResult)
Specified by:
getResult in class AbstractTest

getExpected

public java.lang.String getExpected()
Specified by:
getExpected in class AbstractTest


Copyright © 2013. All Rights Reserved.