org.jhotdraw.test.util
Class UndoManagerTest

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

public class UndoManagerTest
extends junit.framework.TestCase

TestCase UndoManagerTest is generated by JUnitDoclet to hold the tests for UndoManager.

See Also:
UndoManager

Constructor Summary
UndoManagerTest(java.lang.String name)
          Constructor UndoManagerTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 UndoManager createInstance()
          Factory method for instances of the class to be tested.
 void testClearRedos()
          Method testClearRedos is testing clearRedos
 void testClearUndos()
          Method testClearUndos is testing clearUndos
 void testGetRedoSize()
          Method testGetRedoSize is testing getRedoSize
 void testGetUndoSize()
          Method testGetUndoSize is testing getUndoSize
 void testIsRedoable()
          Method testIsRedoable is testing isRedoable
 void testIsUndoable()
          Method testIsUndoable is testing isUndoable
 void testPopRedo()
          Method testPopRedo is testing popRedo
 void testPopUndo()
          Method testPopUndo is testing popUndo
 void testPushRedo()
          Method testPushRedo is testing pushRedo
 void testPushUndo()
          Method testPushUndo is testing pushUndo
 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

UndoManagerTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testPushUndo

public void testPushUndo()
                  throws java.lang.Exception
Method testPushUndo is testing pushUndo

Throws:
java.lang.Exception
See Also:
UndoManager.pushUndo(org.jhotdraw.util.Undoable)

testPushRedo

public void testPushRedo()
                  throws java.lang.Exception
Method testPushRedo is testing pushRedo

Throws:
java.lang.Exception
See Also:
UndoManager.pushRedo(org.jhotdraw.util.Undoable)

testIsUndoable

public void testIsUndoable()
                    throws java.lang.Exception
Method testIsUndoable is testing isUndoable

Throws:
java.lang.Exception
See Also:
UndoManager.isUndoable()

testIsRedoable

public void testIsRedoable()
                    throws java.lang.Exception
Method testIsRedoable is testing isRedoable

Throws:
java.lang.Exception
See Also:
UndoManager.isRedoable()

testGetUndoSize

public void testGetUndoSize()
                     throws java.lang.Exception
Method testGetUndoSize is testing getUndoSize

Throws:
java.lang.Exception
See Also:
UndoManager.getUndoSize()

testGetRedoSize

public void testGetRedoSize()
                     throws java.lang.Exception
Method testGetRedoSize is testing getRedoSize

Throws:
java.lang.Exception
See Also:
UndoManager.getRedoSize()

testPopUndo

public void testPopUndo()
                 throws java.lang.Exception
Method testPopUndo is testing popUndo

Throws:
java.lang.Exception
See Also:
UndoManager.popUndo()

testPopRedo

public void testPopRedo()
                 throws java.lang.Exception
Method testPopRedo is testing popRedo

Throws:
java.lang.Exception
See Also:
UndoManager.popRedo()

testClearUndos

public void testClearUndos()
                    throws java.lang.Exception
Method testClearUndos is testing clearUndos

Throws:
java.lang.Exception
See Also:
UndoManager.clearUndos()

testClearRedos

public void testClearRedos()
                    throws java.lang.Exception
Method testClearRedos is testing clearRedos

Throws:
java.lang.Exception
See Also:
UndoManager.clearRedos()

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