laser.regularlanguage.regularexpression.util.test
Class RegularExpressionsTests<L extends LabelInterface>

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by laser.regularlanguage.regularexpression.util.test.RegularExpressionsTests<L>
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
StringRegularExpressionsTests

public abstract class RegularExpressionsTests<L extends LabelInterface>
extends junit.framework.TestCase


Field Summary
protected  AlphabetFactoryInterface<L> alphabetFactory_
           
protected  AbstractRegularExpressions<L> resInstance_
           
 
Constructor Summary
RegularExpressionsTests()
           
 
Method Summary
protected abstract  AbstractRegularExpressions<L> _createRegularExpressionsInstance()
          Creates the appropriate AbstractRegularExpressions.
protected  void _setUp()
           
abstract  AlphabetInterface<L> createAlphabetInstance()
           
protected abstract  L createLabelInstance()
           
protected abstract  java.lang.Object[] getCreateREArgs()
           
protected abstract  java.lang.StringBuffer getLexerErrorRE()
           
protected abstract  java.lang.StringBuffer getParserErrorRE()
           
protected  void setUp()
           
 void testConcatenation()
           
 void testConvertExtendedREtoREBasicRE()
           
 void testConvertExtendedREtoRENotBasicRE()
           
 void testEmpty()
           
 void testEpsilon()
           
 void testGetUniqueTermCountBinaryIsThreeOrMore()
           
 void testGetUniqueTermCountLeafIsOneOrMore()
           
 void testGetUniqueTermCountUnaryIsTwoOrMore()
           
 void testIsExtendedREReturnsFalse()
           
 void testIsExtendedREReturnsTrue()
           
 void testLabel()
           
 void testReadLexerError()
           
 void testReadParserError()
           
 void testReadWriteCompatible()
           
 void testSimplifyNotSimplifiedRE()
           
 void testSimplifySimplifiedRE()
           
 void testStar()
           
 void testUnion()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resInstance_

protected AbstractRegularExpressions<L extends LabelInterface> resInstance_

alphabetFactory_

protected AlphabetFactoryInterface<L extends LabelInterface> alphabetFactory_
Constructor Detail

RegularExpressionsTests

public RegularExpressionsTests()
Method Detail

setUp

protected final void setUp()
                    throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

_setUp

protected void _setUp()
               throws java.lang.Exception
Throws:
java.lang.Exception

_createRegularExpressionsInstance

protected abstract AbstractRegularExpressions<L> _createRegularExpressionsInstance()
Creates the appropriate AbstractRegularExpressions. POSTCONDITION:

Returns:
The appropriate AbstractRegularExpressions

getCreateREArgs

protected abstract java.lang.Object[] getCreateREArgs()

createAlphabetInstance

public abstract AlphabetInterface<L> createAlphabetInstance()

createLabelInstance

protected abstract L createLabelInstance()

getLexerErrorRE

protected abstract java.lang.StringBuffer getLexerErrorRE()

getParserErrorRE

protected abstract java.lang.StringBuffer getParserErrorRE()

testEmpty

public final void testEmpty()

testEpsilon

public final void testEpsilon()

testLabel

public final void testLabel()

testConcatenation

public final void testConcatenation()

testStar

public final void testStar()

testUnion

public final void testUnion()

testGetUniqueTermCountLeafIsOneOrMore

public final void testGetUniqueTermCountLeafIsOneOrMore()

testGetUniqueTermCountUnaryIsTwoOrMore

public final void testGetUniqueTermCountUnaryIsTwoOrMore()

testGetUniqueTermCountBinaryIsThreeOrMore

public final void testGetUniqueTermCountBinaryIsThreeOrMore()

testIsExtendedREReturnsFalse

public final void testIsExtendedREReturnsFalse()

testIsExtendedREReturnsTrue

public final void testIsExtendedREReturnsTrue()

testConvertExtendedREtoRENotBasicRE

public final void testConvertExtendedREtoRENotBasicRE()

testConvertExtendedREtoREBasicRE

public final void testConvertExtendedREtoREBasicRE()

testSimplifyNotSimplifiedRE

public final void testSimplifyNotSimplifiedRE()

testSimplifySimplifiedRE

public final void testSimplifySimplifiedRE()

testReadLexerError

public final void testReadLexerError()

testReadParserError

public final void testReadParserError()

testReadWriteCompatible

public final void testReadWriteCompatible()