laser.alphabet.labelpattern.test
Class StringAllLabelPatternTest

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

public class StringAllLabelPatternTest
extends AbstractStringLabelPatternTest

The StringAllLabelPatternTest 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.AbstractStringLabelPatternTest
factory, probe
 
Constructor Summary
StringAllLabelPatternTest()
           
 
Method Summary
protected  void setUp()
          Initializes the fields for each test.
 void testStringAllLabelPatternClone()
          Tests the AllLabelPattern.clone() method.
 void testStringAllLabelPatternCompareTo()
          Tests the AllLabelPattern.compareTo() method.
 void testStringAllLabelPatternEquals()
          Tests the AllLabelPattern.equals() method.
 void testStringAllLabelPatternGetMatchingLabels()
          Tests the AllLabelPattern.getMatchingLabels() method.
 void testStringAllLabelPatternHashCode()
          Tests the AllLabelPattern.hashCode() method.
 void testStringAllLabelPatternToString()
          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

StringAllLabelPatternTest

public StringAllLabelPatternTest()
Method Detail

setUp

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

Overrides:
setUp in class AbstractStringLabelPatternTest

testStringAllLabelPatternClone

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

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


testStringAllLabelPatternCompareTo

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

Try null input, AllLabelPattern input and unequal LabelPatternInterface input.

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


testStringAllLabelPatternEquals

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

Try null input, AllLabelPattern input and unequal LabelPatternInterface input.

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

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


testStringAllLabelPatternGetMatchingLabels

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

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

This test relies on the fact that the StringLabelPatternFactory.createAllLabelPatternInterface(), StringLabelPatternFactory.createAlphabetInterface(), and StringAlphabet.add() methods work properly.


testStringAllLabelPatternHashCode

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

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


testStringAllLabelPatternToString

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

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

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