org.jhotdraw.test.util
Class UndoableCommandTest

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

public class UndoableCommandTest
extends JHDTestCase

TestCase UndoableCommandTest is generated by JUnitDoclet to hold the tests for UndoableCommand.

See Also:
UndoableCommand

Field Summary
 
Fields inherited from class org.jhotdraw.test.JHDTestCase
myDrawingEditor
 
Constructor Summary
UndoableCommandTest(java.lang.String name)
          Constructor UndoableCommandTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 UndoableCommand createInstance()
          Factory method for instances of the class to be tested.
 void testAddCommandListener()
          Method testAddCommandListener is testing addCommandListener
 void testCommandExecutable()
          Method testCommandExecutable is testing commandExecutable
 void testCommandExecuted()
          Method testCommandExecuted is testing commandExecuted
 void testCommandNotExecutable()
          Method testCommandNotExecutable is testing commandNotExecutable
 void testCreateEventDispatcher()
          Method testCreateEventDispatcher is testing createEventDispatcher
 void testExecute()
          Method testExecute is testing execute
 void testFigureSelectionChanged()
          Method testFigureSelectionChanged is testing figureSelectionChanged
 void testGetDrawingEditor()
          Method testGetDrawingEditor is testing getDrawingEditor
 void testIsExecutable()
          Method testIsExecutable is testing isExecutable
 void testName()
          Method testName is testing name
 void testRemoveCommandListener()
          Method testRemoveCommandListener is testing removeCommandListener
 void testSetGetUndoActivity()
          Method testSetGetUndoActivity is testing setUndoActivity and getUndoActivity together by setting some value and verifying it by reading.
 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.
 void testView()
          Method testView is testing view
 
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

UndoableCommandTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testExecute

public void testExecute()
                 throws java.lang.Exception
Method testExecute is testing execute

Throws:
java.lang.Exception
See Also:
UndoableCommand.execute()

testIsExecutable

public void testIsExecutable()
                      throws java.lang.Exception
Method testIsExecutable is testing isExecutable

Throws:
java.lang.Exception
See Also:
UndoableCommand.isExecutable()

testName

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

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

testGetDrawingEditor

public void testGetDrawingEditor()
                          throws java.lang.Exception
Method testGetDrawingEditor is testing getDrawingEditor

Throws:
java.lang.Exception
See Also:
UndoableCommand.getDrawingEditor()

testView

public void testView()
              throws java.lang.Exception
Method testView is testing view

Throws:
java.lang.Exception
See Also:
UndoableCommand.view()

testFigureSelectionChanged

public void testFigureSelectionChanged()
                                throws java.lang.Exception
Method testFigureSelectionChanged is testing figureSelectionChanged

Throws:
java.lang.Exception
See Also:
UndoableCommand.figureSelectionChanged(org.jhotdraw.framework.DrawingView)

testSetGetUndoActivity

public void testSetGetUndoActivity()
                            throws java.lang.Exception
Method testSetGetUndoActivity is testing setUndoActivity and getUndoActivity together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
UndoableCommand.setUndoActivity(org.jhotdraw.util.Undoable), UndoableCommand.getUndoActivity()

testAddCommandListener

public void testAddCommandListener()
                            throws java.lang.Exception
Method testAddCommandListener is testing addCommandListener

Throws:
java.lang.Exception
See Also:
UndoableCommand.addCommandListener(org.jhotdraw.util.CommandListener)

testRemoveCommandListener

public void testRemoveCommandListener()
                               throws java.lang.Exception
Method testRemoveCommandListener is testing removeCommandListener

Throws:
java.lang.Exception
See Also:
UndoableCommand.removeCommandListener(org.jhotdraw.util.CommandListener)

testCreateEventDispatcher

public void testCreateEventDispatcher()
                               throws java.lang.Exception
Method testCreateEventDispatcher is testing createEventDispatcher

Throws:
java.lang.Exception
See Also:
UndoableCommand.createEventDispatcher()

testCommandExecuted

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

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

testCommandExecutable

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

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

testCommandNotExecutable

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

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