org.jhotdraw.test.util
Class ColorMapTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jhotdraw.test.util.ColorMapTest
All Implemented Interfaces:
junit.framework.Test

public class ColorMapTest
extends junit.framework.TestCase

TestCase ColorMapTest is generated by JUnitDoclet to hold the tests for ColorMap.

See Also:
ColorMap

Constructor Summary
ColorMapTest(java.lang.String name)
          Constructor ColorMapTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 ColorMap createInstance()
          Factory method for instances of the class to be tested.
 void testColor()
          Method testColor is testing color
 void testColorIndex()
          Method testColorIndex is testing colorIndex
 void testIsTransparent()
          Method testIsTransparent is testing isTransparent
 void testName()
          Method testName is testing name
 void testSize()
          Method testSize is testing size
 void testVault()
          JUnitDoclet moves marker to this method, if there is not match for them in the regenerated code and if the marker is not empty.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorMapTest

public ColorMapTest(java.lang.String name)
Constructor ColorMapTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.

Method Detail

createInstance

public ColorMap createInstance()
                        throws java.lang.Exception
Factory method for instances of the class to be tested.

Throws:
java.lang.Exception

testSize

public void testSize()
              throws java.lang.Exception
Method testSize is testing size

Throws:
java.lang.Exception
See Also:
ColorMap.size()

testColor

public void testColor()
               throws java.lang.Exception
Method testColor is testing color

Throws:
java.lang.Exception
See Also:
ColorMap.color(int)

testName

public void testName()
              throws java.lang.Exception
Method testName is testing name

Throws:
java.lang.Exception
See Also:
ColorMap.name(int)

testColorIndex

public void testColorIndex()
                    throws java.lang.Exception
Method testColorIndex is testing colorIndex

Throws:
java.lang.Exception
See Also:
ColorMap.colorIndex(java.awt.Color)

testIsTransparent

public void testIsTransparent()
                       throws java.lang.Exception
Method testIsTransparent is testing isTransparent

Throws:
java.lang.Exception
See Also:
ColorMap.isTransparent(java.awt.Color)

testVault

public void testVault()
               throws java.lang.Exception
JUnitDoclet moves marker to this method, if there is not match for them in the regenerated code and if the marker is not empty. This way, no test gets lost when regenerating after renaming. Method testVault is supposed to be empty.

Throws:
java.lang.Exception