laser.regularlanguage.regularexpression.test
Class RETests<L extends LabelInterface>

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

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


Field Summary
protected  AlphabetFactoryInterface<L> alphabetFactory_
           
protected  REFactory<L> reFactory_
           
 
Constructor Summary
RETests()
           
 
Method Summary
protected abstract  REFactory<L> _createREFactoryInstance()
           
protected  void _setUp()
           
protected  void abstractEquals(RE<L> oldRE, RE<L> newRE)
           
protected  AlphabetInterface<L> createAlphabetInstance()
           
protected  AlphabetInterface<L> createAlphabetInstance(AlphabetInterface<L> alphabet)
           
protected abstract  L createLabelInstance()
           
protected abstract  java.lang.Object[] getCreateAlphabetArgs()
           
protected abstract  java.lang.Object[] getCreateAlphabetArgs(AlphabetInterface<L> alphabet)
           
protected abstract  java.lang.Object[] getCreateREArgs()
           
protected  RE<L> getEmptyRE()
           
protected  RE<L> getLabelRE()
           
protected  void setUp()
           
 void testClone()
           
 void testCreateRE()
           
 void testCreateRENullAlphabet()
           
 void testCreateRENullRegularExpression()
           
 void testGetAlphabetEmpty()
           
 void testGetAlphabetNotEmpty()
           
 void testGetRegularExpression()
           
 void testSetDescriptionNotNull()
           
 void testSetDescriptionNull()
           
 void testSetNameNotNull()
           
 void testSetNameNull()
           
 void testWritePersistentThenReadPersistent()
           
 
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

reFactory_

protected REFactory<L extends LabelInterface> reFactory_

alphabetFactory_

protected AlphabetFactoryInterface<L extends LabelInterface> alphabetFactory_
Constructor Detail

RETests

public RETests()
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

getCreateAlphabetArgs

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

getCreateAlphabetArgs

protected abstract java.lang.Object[] getCreateAlphabetArgs(AlphabetInterface<L> alphabet)

createAlphabetInstance

protected AlphabetInterface<L> createAlphabetInstance()

createAlphabetInstance

protected AlphabetInterface<L> createAlphabetInstance(AlphabetInterface<L> alphabet)

createLabelInstance

protected abstract L createLabelInstance()

_createREFactoryInstance

protected abstract REFactory<L> _createREFactoryInstance()

getCreateREArgs

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

getEmptyRE

protected RE<L> getEmptyRE()

getLabelRE

protected RE<L> getLabelRE()

abstractEquals

protected void abstractEquals(RE<L> oldRE,
                              RE<L> newRE)

testCreateRENullAlphabet

public final void testCreateRENullAlphabet()

testCreateRENullRegularExpression

public final void testCreateRENullRegularExpression()

testCreateRE

public final void testCreateRE()

testSetNameNull

public final void testSetNameNull()

testSetNameNotNull

public final void testSetNameNotNull()

testSetDescriptionNull

public final void testSetDescriptionNull()

testSetDescriptionNotNull

public final void testSetDescriptionNotNull()

testGetAlphabetEmpty

public final void testGetAlphabetEmpty()

testGetAlphabetNotEmpty

public final void testGetAlphabetNotEmpty()

testGetRegularExpression

public final void testGetRegularExpression()

testClone

public final void testClone()

testWritePersistentThenReadPersistent

public final void testWritePersistentThenReadPersistent()