org.jhotdraw.test.standard
Class ToolButtonTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jhotdraw.test.JHDTestCase
              extended by org.jhotdraw.test.standard.ToolButtonTest
All Implemented Interfaces:
junit.framework.Test

public class ToolButtonTest
extends JHDTestCase

TestCase ToolButtonTest is generated by JUnitDoclet to hold the tests for ToolButton.

See Also:
ToolButton

Field Summary
 
Fields inherited from class org.jhotdraw.test.JHDTestCase
myDrawingEditor
 
Constructor Summary
ToolButtonTest(java.lang.String name)
          Constructor ToolButtonTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 ToolButton createInstance()
          Factory method for instances of the class to be tested.
 void testAttributeValue()
          Method testAttributeValue is testing attributeValue
 void testGetMaximumSize()
          Method testGetMaximumSize is testing getMaximumSize
 void testGetMinimumSize()
          Method testGetMinimumSize is testing getMinimumSize
 void testGetPreferredSize()
          Method testGetPreferredSize is testing getPreferredSize
 void testName()
          Method testName is testing name
 void testPaint()
          Method testPaint is testing paint
 void testPaintSelected()
          Method testPaintSelected is testing paintSelected
 void testTool()
          Method testTool is testing tool
 void testToolActivated()
          Method testToolActivated is testing toolActivated
 void testToolDeactivated()
          Method testToolDeactivated is testing toolDeactivated
 void testToolDisabled()
          Method testToolDisabled is testing toolDisabled
 void testToolEnabled()
          Method testToolEnabled is testing toolEnabled
 void testToolUnusable()
          Method testToolUnusable is testing toolUnusable
 void testToolUsable()
          Method testToolUsable is testing toolUsable
 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 org.jhotdraw.test.JHDTestCase
createNewDrawingEditor, getDrawingEditor
 
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

ToolButtonTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testTool

public void testTool()
              throws java.lang.Exception
Method testTool is testing tool

Throws:
java.lang.Exception
See Also:
ToolButton.tool()

testName

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

Throws:
java.lang.Exception
See Also:
ToolButton.name()

testAttributeValue

public void testAttributeValue()
                        throws java.lang.Exception
Method testAttributeValue is testing attributeValue

Throws:
java.lang.Exception
See Also:
ToolButton.attributeValue()

testGetMinimumSize

public void testGetMinimumSize()
                        throws java.lang.Exception
Method testGetMinimumSize is testing getMinimumSize

Throws:
java.lang.Exception
See Also:
ToolButton.getMinimumSize()

testGetPreferredSize

public void testGetPreferredSize()
                          throws java.lang.Exception
Method testGetPreferredSize is testing getPreferredSize

Throws:
java.lang.Exception
See Also:
ToolButton.getPreferredSize()

testGetMaximumSize

public void testGetMaximumSize()
                        throws java.lang.Exception
Method testGetMaximumSize is testing getMaximumSize

Throws:
java.lang.Exception
See Also:
ToolButton.getMaximumSize()

testPaintSelected

public void testPaintSelected()
                       throws java.lang.Exception
Method testPaintSelected is testing paintSelected

Throws:
java.lang.Exception
See Also:
ToolButton.paintSelected(java.awt.Graphics)

testPaint

public void testPaint()
               throws java.lang.Exception
Method testPaint is testing paint

Throws:
java.lang.Exception
See Also:
ToolButton.paint(java.awt.Graphics)

testToolUsable

public void testToolUsable()
                    throws java.lang.Exception
Method testToolUsable is testing toolUsable

Throws:
java.lang.Exception
See Also:
ToolButton.toolUsable(java.util.EventObject)

testToolUnusable

public void testToolUnusable()
                      throws java.lang.Exception
Method testToolUnusable is testing toolUnusable

Throws:
java.lang.Exception
See Also:
ToolButton.toolUnusable(java.util.EventObject)

testToolActivated

public void testToolActivated()
                       throws java.lang.Exception
Method testToolActivated is testing toolActivated

Throws:
java.lang.Exception
See Also:
ToolButton.toolActivated(java.util.EventObject)

testToolDeactivated

public void testToolDeactivated()
                         throws java.lang.Exception
Method testToolDeactivated is testing toolDeactivated

Throws:
java.lang.Exception
See Also:
ToolButton.toolDeactivated(java.util.EventObject)

testToolEnabled

public void testToolEnabled()
                     throws java.lang.Exception
Method testToolEnabled is testing toolEnabled

Throws:
java.lang.Exception
See Also:
ToolButton.toolEnabled(java.util.EventObject)

testToolDisabled

public void testToolDisabled()
                      throws java.lang.Exception
Method testToolDisabled is testing toolDisabled

Throws:
java.lang.Exception
See Also:
ToolButton.toolDisabled(java.util.EventObject)

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