org.jhotdraw.test.contrib
Class CTXCommandMenuTest

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

public class CTXCommandMenuTest
extends junit.framework.TestCase

TestCase CTXCommandMenuTest is generated by JUnitDoclet to hold the tests for CTXCommandMenu.

See Also:
CTXCommandMenu

Constructor Summary
CTXCommandMenuTest(java.lang.String name)
          Constructor CTXCommandMenuTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 CTXCommandMenu createInstance()
          Factory method for instances of the class to be tested.
 void testActionPerformed()
          Method testActionPerformed is testing actionPerformed
 void testAdd()
          Method testAdd is testing add
 void testAddCheckItem()
          Method testAddCheckItem is testing addCheckItem
 void testCheckEnabled()
          Method testCheckEnabled is testing checkEnabled
 void testCommandExecutable()
          Method testCommandExecutable is testing commandExecutable
 void testCommandExecuted()
          Method testCommandExecuted is testing commandExecuted
 void testCommandNotExecutable()
          Method testCommandNotExecutable is testing commandNotExecutable
 void testEnable()
          Method testEnable is testing enable
 void testRemove()
          Method testRemove is testing remove
 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

CTXCommandMenuTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testAdd

public void testAdd()
             throws java.lang.Exception
Method testAdd is testing add

Throws:
java.lang.Exception
See Also:
CTXCommandMenu.add(org.jhotdraw.util.Command)

testAddCheckItem

public void testAddCheckItem()
                      throws java.lang.Exception
Method testAddCheckItem is testing addCheckItem

Throws:
java.lang.Exception
See Also:
CTXCommandMenu.addCheckItem(org.jhotdraw.util.Command)

testRemove

public void testRemove()
                throws java.lang.Exception
Method testRemove is testing remove

Throws:
java.lang.Exception
See Also:
CTXCommandMenu.remove(org.jhotdraw.util.Command)

testEnable

public void testEnable()
                throws java.lang.Exception
Method testEnable is testing enable

Throws:
java.lang.Exception
See Also:
CTXCommandMenu.enable(java.lang.String, boolean)

testCheckEnabled

public void testCheckEnabled()
                      throws java.lang.Exception
Method testCheckEnabled is testing checkEnabled

Throws:
java.lang.Exception
See Also:
CTXCommandMenu.checkEnabled()

testActionPerformed

public void testActionPerformed()
                         throws java.lang.Exception
Method testActionPerformed is testing actionPerformed

Throws:
java.lang.Exception
See Also:
CTXCommandMenu.actionPerformed(java.awt.event.ActionEvent)

testCommandExecuted

public void testCommandExecuted()
                         throws java.lang.Exception
Method testCommandExecuted is testing commandExecuted

Throws:
java.lang.Exception
See Also:
CTXCommandMenu.commandExecuted(java.util.EventObject)

testCommandExecutable

public void testCommandExecutable()
                           throws java.lang.Exception
Method testCommandExecutable is testing commandExecutable

Throws:
java.lang.Exception
See Also:
CTXCommandMenu.commandExecutable(java.util.EventObject)

testCommandNotExecutable

public void testCommandNotExecutable()
                              throws java.lang.Exception
Method testCommandNotExecutable is testing commandNotExecutable

Throws:
java.lang.Exception
See Also:
CTXCommandMenu.commandNotExecutable(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