|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jhotdraw.test.JHDTestCase
org.jhotdraw.test.util.UndoableCommandTest
public class UndoableCommandTest
TestCase UndoableCommandTest is generated by JUnitDoclet to hold the tests for UndoableCommand.
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 |
---|
public UndoableCommandTest(java.lang.String name)
Method Detail |
---|
public UndoableCommand createInstance() throws java.lang.Exception
java.lang.Exception
public void testExecute() throws java.lang.Exception
java.lang.Exception
UndoableCommand.execute()
public void testIsExecutable() throws java.lang.Exception
java.lang.Exception
UndoableCommand.isExecutable()
public void testName() throws java.lang.Exception
java.lang.Exception
UndoableCommand.name()
public void testGetDrawingEditor() throws java.lang.Exception
java.lang.Exception
UndoableCommand.getDrawingEditor()
public void testView() throws java.lang.Exception
java.lang.Exception
UndoableCommand.view()
public void testFigureSelectionChanged() throws java.lang.Exception
java.lang.Exception
UndoableCommand.figureSelectionChanged(org.jhotdraw.framework.DrawingView)
public void testSetGetUndoActivity() throws java.lang.Exception
java.lang.Exception
UndoableCommand.setUndoActivity(org.jhotdraw.util.Undoable)
,
UndoableCommand.getUndoActivity()
public void testAddCommandListener() throws java.lang.Exception
java.lang.Exception
UndoableCommand.addCommandListener(org.jhotdraw.util.CommandListener)
public void testRemoveCommandListener() throws java.lang.Exception
java.lang.Exception
UndoableCommand.removeCommandListener(org.jhotdraw.util.CommandListener)
public void testCreateEventDispatcher() throws java.lang.Exception
java.lang.Exception
UndoableCommand.createEventDispatcher()
public void testCommandExecuted() throws java.lang.Exception
java.lang.Exception
UndoableCommand.commandExecuted(java.util.EventObject)
public void testCommandExecutable() throws java.lang.Exception
java.lang.Exception
UndoableCommand.commandExecutable(java.util.EventObject)
public void testCommandNotExecutable() throws java.lang.Exception
java.lang.Exception
UndoableCommand.commandNotExecutable(java.util.EventObject)
public void testVault() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |