Package org.antlr.gunit

## Class gUnitTestSuite

- java.lang.Object
- - org.antlr.gunit.gUnitTestSuite

    public class gUnitTestSuite
    extends java.lang.Object

### Field Summary

Fields
`protected boolean` `isLexicalRule`
`protected java.lang.String` `lexicalRule`
`protected java.lang.String` `rule`
`protected java.util.Map<gUnitTestInput,AbstractTest>` `testSuites` A map which stores input/output pairs (individual testsuites).
`protected java.lang.String` `treeRule`

### Constructor Summary

Constructors
`gUnitTestSuite​()`
`gUnitTestSuite​(java.lang.String rule)`
`gUnitTestSuite​(java.lang.String treeRule, java.lang.String rule)`

### Method Summary

All Methods Instance Methods Concrete Methods
`void` `addTestCase​(gUnitTestInput input, AbstractTest expect)`
`java.lang.String` `getLexicalRuleName​()`
`java.lang.String` `getRuleName​()`
`java.lang.String` `getTreeRuleName​()`
`boolean` `isLexicalRule​()`
`void` `setLexicalRuleName​(java.lang.String lexicalRule)`
`void` `setRuleName​(java.lang.String ruleName)`
`void` `setTreeRuleName​(java.lang.String treeRuleName)`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Field Detail

#### rule

    protected java.lang.String rule

#### lexicalRule

    protected java.lang.String lexicalRule

#### treeRule

    protected java.lang.String treeRule

#### isLexicalRule

    protected boolean isLexicalRule

#### testSuites

    protected java.util.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).

### Constructor Detail

#### gUnitTestSuite

    public gUnitTestSuite​()

#### gUnitTestSuite

    public gUnitTestSuite​(java.lang.String rule)

#### gUnitTestSuite

    public gUnitTestSuite​(java.lang.String treeRule,
                          java.lang.String rule)

### Method Detail

#### setRuleName

    public void setRuleName​(java.lang.String ruleName)

#### setLexicalRuleName

    public void setLexicalRuleName​(java.lang.String lexicalRule)

#### setTreeRuleName

    public void setTreeRuleName​(java.lang.String treeRuleName)

#### getRuleName

    public java.lang.String getRuleName​()

#### getLexicalRuleName

    public java.lang.String getLexicalRuleName​()

#### getTreeRuleName

    public java.lang.String getTreeRuleName​()

#### isLexicalRule

    public boolean isLexicalRule​()

#### addTestCase

    public void addTestCase​(gUnitTestInput input,
                            AbstractTest expect)