org.antlr.gunit
Class gUnitTestSuite
java.lang.Object
org.antlr.gunit.gUnitTestSuite
public class gUnitTestSuite
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rule
protected String rule
lexicalRule
protected String lexicalRule
treeRule
protected String treeRule
isLexicalRule
protected boolean isLexicalRule
testSuites
protected Map<gUnitTestInput,AbstractTest> testSuites
- A map which stores input/output pairs (individual testsuites).
In other words, it maps input data for unit test (gUnitTestInput object)
to an expected output (Token object).
gUnitTestSuite
public gUnitTestSuite()
gUnitTestSuite
public gUnitTestSuite(String rule)
gUnitTestSuite
public gUnitTestSuite(String treeRule,
String rule)
setRuleName
public void setRuleName(String ruleName)
setLexicalRuleName
public void setLexicalRuleName(String lexicalRule)
setTreeRuleName
public void setTreeRuleName(String treeRuleName)
getRuleName
public String getRuleName()
getLexicalRuleName
public String getLexicalRuleName()
getTreeRuleName
public String getTreeRuleName()
isLexicalRule
public boolean isLexicalRule()
addTestCase
public void addTestCase(gUnitTestInput input,
AbstractTest expect)
Copyright © 2011. All Rights Reserved.