laser.alphabet.labelpattern.test
Class IndexedAllLabelPatternTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by laser.alphabet.labelpattern.test.AbstractIndexedLabelPatternTest
              extended by laser.alphabet.labelpattern.test.IndexedAllLabelPatternTest
All Implemented Interfaces:
junit.framework.Test

public class IndexedAllLabelPatternTest
extends AbstractIndexedLabelPatternTest

The IndexedAllLabelPatternTest class provides testing for the AllLabelPattern class.

Author:
Nathan A. Jokel (laser-software@cs.umass.edu)
See Also:
AllLabelPattern

Field Summary
 
Fields inherited from class laser.alphabet.labelpattern.test.AbstractIndexedLabelPatternTest
factory, probe
 
Constructor Summary
IndexedAllLabelPatternTest()
           
 
Method Summary
protected  void setUp()
          Initializes the fields for each test.
 void testIndexedAllLabelPatternClone()
          Tests the AllLabelPattern.clone() method.
 void testIndexedAllLabelPatternCompareTo()
          Tests the AllLabelPattern.compareTo() method.
 void testIndexedAllLabelPatternEquals()
          Tests the AllLabelPattern.equals() method.
 void testIndexedAllLabelPatternGetMatchingLabels()
          Tests the AllLabelPattern.getMatchingLabels() method.
 void testIndexedAllLabelPatternHashCode()
          Tests the AllLabelPattern.hashCode() method.
 void testIndexedAllLabelPatternToString()
          Tests the AllLabelPattern.toString() method.
 
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
 

Constructor Detail

IndexedAllLabelPatternTest

public IndexedAllLabelPatternTest()
Method Detail

setUp

protected void setUp()
Initializes the fields for each test.

Overrides:
setUp in class AbstractIndexedLabelPatternTest

testIndexedAllLabelPatternClone

public void testIndexedAllLabelPatternClone()
Tests the AllLabelPattern.clone() method.

This test relies on the fact that the IndexedLabelPatternFactory.createAllLabelPatternInterface() method works properly.


testIndexedAllLabelPatternCompareTo

public void testIndexedAllLabelPatternCompareTo()
Tests the AllLabelPattern.compareTo() method.

Try null input, AllLabelPattern input and unequal LabelPatternInterface input.

This test relies on the fact that the IndexedLabelPatternFactory.createAllLabelPatternInterface() and IndexedLabelPatternFactory.createLabelPatternInterface(), and AllLabelPattern.equals(), AllLabelPattern.toString(), and IndexedLabelPattern.toString() methods work properly.


testIndexedAllLabelPatternEquals

public void testIndexedAllLabelPatternEquals()
Tests the AllLabelPattern.equals() method.

Try null input, AllLabelPattern input and unequal LabelPatternInterface input.

This test relies on the fact that the IndexedLabelPatternFactory.createAllLabelPatternInterface() and IndexedLabelPatternFactory.createLabelPatternInterface() methods work properly.

Note that the failure of this test invalidates the results of other tests.


testIndexedAllLabelPatternGetMatchingLabels

public void testIndexedAllLabelPatternGetMatchingLabels()
Tests the AllLabelPattern.getMatchingLabels() method.

Try null input, an empty AlphabetInterface, a non-empty AlphabetInterface.

This test relies on the fact that the IndexedLabelPatternFactory.createAllLabelPatternInterface(), IndexedLabelPatternFactory.createAlphabetInterface(), and IndexedAlphabet.clear() methods work properly.


testIndexedAllLabelPatternHashCode

public void testIndexedAllLabelPatternHashCode()
Tests the AllLabelPattern.hashCode() method.

This test relies on the fact that the IndexedLabelPatternFactory.createAllLabelPatternInterface() method works properly.


testIndexedAllLabelPatternToString

public void testIndexedAllLabelPatternToString()
Tests the AllLabelPattern.toString() method.

This test relies on the fact that the IndexedLabelPatternFactory.createAllLabelPatternInterface() method works properly.

Note that the failure of this test invalidates the results of other tests.