Package org.antlr.gunit

## Class gUnitBaseTest

- java.lang.Object
- - junit.framework.Assert
  - - junit.framework.TestCase
    - - org.antlr.gunit.gUnitBaseTest

    public abstract class gUnitBaseTest
    extends junit.framework.TestCase

All gUnit-generated JUnit class should extend this class which implements the essential methods for triggering ANTLR parser/tree walker

### Field Summary

Fields
`java.lang.String` `lexerPath`
`java.lang.String` `packagePath`
`java.lang.String` `parserPath`
`protected java.lang.String` `stderr`
`protected java.lang.String` `stdout`
`java.lang.String` `treeAdaptorPath`
`java.lang.String` `treeParserPath`

### Constructor Summary

Constructors
`gUnitBaseTest​()`

### Method Summary

All Methods Instance Methods Concrete Methods
`java.lang.Object` `examineExecResult​(int tokenType, java.lang.Object retVal)`
`java.lang.String` `execLexer​(java.lang.String testRuleName, int line, java.lang.String testInput, boolean isFile)`
`java.lang.Object` `execParser​(java.lang.String testRuleName, int line, java.lang.String testInput, boolean isFile)`
`java.lang.Object` `execTreeParser​(java.lang.String testTreeRuleName, java.lang.String testRuleName, java.lang.String testInput, boolean isFile)`
`protected void` `handleUnexpectedException​(java.lang.Exception e)`

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

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

### Methods inherited from class junit.framework.TestCase

`assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString`

### Field Detail

#### treeAdaptorPath

    public java.lang.String treeAdaptorPath

#### packagePath

    public java.lang.String packagePath

#### lexerPath

    public java.lang.String lexerPath

#### parserPath

    public java.lang.String parserPath

#### treeParserPath

    public java.lang.String treeParserPath

#### stdout

    protected java.lang.String stdout

#### stderr

    protected java.lang.String stderr

### Constructor Detail

#### gUnitBaseTest

    public gUnitBaseTest​()

### Method Detail

#### execLexer

    public java.lang.String execLexer​(java.lang.String testRuleName,
                                      int line,
                                      java.lang.String testInput,
                                      boolean isFile)
                               throws java.lang.Exception

Throws:
  `java.lang.Exception`

#### execParser

    public java.lang.Object execParser​(java.lang.String testRuleName,
                                       int line,
                                       java.lang.String testInput,
                                       boolean isFile)
                                throws java.lang.Exception

Throws:
  `java.lang.Exception`

#### execTreeParser

    public java.lang.Object execTreeParser​(java.lang.String testTreeRuleName,
                                           java.lang.String testRuleName,
                                           java.lang.String testInput,
                                           boolean isFile)
                                    throws java.lang.Exception

Throws:
  `java.lang.Exception`

#### examineExecResult

    public java.lang.Object examineExecResult​(int tokenType,
                                              java.lang.Object retVal)

#### handleUnexpectedException

    protected void handleUnexpectedException​(java.lang.Exception e)