org.jhotdraw.test.standard
Class StandardDrawingTest

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

public class StandardDrawingTest
extends junit.framework.TestCase

TestCase StandardDrawingTest is generated by JUnitDoclet to hold the tests for StandardDrawing.

See Also:
StandardDrawing

Constructor Summary
StandardDrawingTest(java.lang.String name)
          Constructor StandardDrawingTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 StandardDrawing createInstance()
          Factory method for instances of the class to be tested.
 void testAdd()
          Method testAdd is testing add
 void testAddDrawingChangeListener()
          Method testAddDrawingChangeListener is testing addDrawingChangeListener
 void testBasicDisplayBox()
          Method testBasicDisplayBox is testing basicDisplayBox
 void testDisplayBox()
          Method testDisplayBox is testing displayBox
 void testDrawingChangeListeners()
          Method testDrawingChangeListeners is testing drawingChangeListeners
 void testFigureInvalidated()
          Method testFigureInvalidated is testing figureInvalidated
 void testFigureRequestUpdate()
          Method testFigureRequestUpdate is testing figureRequestUpdate
 void testFireDrawingTitleChanged()
          Method testFireDrawingTitleChanged is testing fireDrawingTitleChanged
 void testHandles()
          Method testHandles is testing handles
 void testLock()
          Method testLock is testing lock
 void testOrphan()
          Method testOrphan is testing orphan
 void testRemoveDrawingChangeListener()
          Method testRemoveDrawingChangeListener is testing removeDrawingChangeListener
 void testSetGetTitle()
          Method testSetGetTitle is testing setTitle and getTitle together by setting some value and verifying it by reading.
 void testUnlock()
          Method testUnlock is testing unlock
 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

StandardDrawingTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testAddDrawingChangeListener

public void testAddDrawingChangeListener()
                                  throws java.lang.Exception
Method testAddDrawingChangeListener is testing addDrawingChangeListener

Throws:
java.lang.Exception
See Also:
StandardDrawing.addDrawingChangeListener(org.jhotdraw.framework.DrawingChangeListener)

testRemoveDrawingChangeListener

public void testRemoveDrawingChangeListener()
                                     throws java.lang.Exception
Method testRemoveDrawingChangeListener is testing removeDrawingChangeListener

Throws:
java.lang.Exception
See Also:
StandardDrawing.removeDrawingChangeListener(org.jhotdraw.framework.DrawingChangeListener)

testDrawingChangeListeners

public void testDrawingChangeListeners()
                                throws java.lang.Exception
Method testDrawingChangeListeners is testing drawingChangeListeners

Throws:
java.lang.Exception
See Also:
StandardDrawing.drawingChangeListeners()

testOrphan

public void testOrphan()
                throws java.lang.Exception
Method testOrphan is testing orphan

Throws:
java.lang.Exception
See Also:
StandardDrawing.orphan(org.jhotdraw.framework.Figure)

testAdd

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

Throws:
java.lang.Exception
See Also:
StandardDrawing.add(org.jhotdraw.framework.Figure)

testFigureInvalidated

public void testFigureInvalidated()
                           throws java.lang.Exception
Method testFigureInvalidated is testing figureInvalidated

Throws:
java.lang.Exception
See Also:
StandardDrawing.figureInvalidated(org.jhotdraw.framework.FigureChangeEvent)

testFireDrawingTitleChanged

public void testFireDrawingTitleChanged()
                                 throws java.lang.Exception
Method testFireDrawingTitleChanged is testing fireDrawingTitleChanged

Throws:
java.lang.Exception
See Also:
StandardDrawing.fireDrawingTitleChanged()

testFigureRequestUpdate

public void testFigureRequestUpdate()
                             throws java.lang.Exception
Method testFigureRequestUpdate is testing figureRequestUpdate

Throws:
java.lang.Exception
See Also:
StandardDrawing.figureRequestUpdate(org.jhotdraw.framework.FigureChangeEvent)

testHandles

public void testHandles()
                 throws java.lang.Exception
Method testHandles is testing handles

Throws:
java.lang.Exception
See Also:
StandardDrawing.handles()

testDisplayBox

public void testDisplayBox()
                    throws java.lang.Exception
Method testDisplayBox is testing displayBox

Throws:
java.lang.Exception
See Also:
StandardDrawing.displayBox()

testBasicDisplayBox

public void testBasicDisplayBox()
                         throws java.lang.Exception
Method testBasicDisplayBox is testing basicDisplayBox

Throws:
java.lang.Exception
See Also:
StandardDrawing.basicDisplayBox(java.awt.Point, java.awt.Point)

testLock

public void testLock()
              throws java.lang.Exception
Method testLock is testing lock

Throws:
java.lang.Exception
See Also:
StandardDrawing.lock()

testUnlock

public void testUnlock()
                throws java.lang.Exception
Method testUnlock is testing unlock

Throws:
java.lang.Exception
See Also:
StandardDrawing.unlock()

testSetGetTitle

public void testSetGetTitle()
                     throws java.lang.Exception
Method testSetGetTitle is testing setTitle and getTitle together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
StandardDrawing.setTitle(java.lang.String), StandardDrawing.getTitle()

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