org.jhotdraw.test.samples.javadraw
Class JavaDrawViewerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jhotdraw.test.samples.javadraw.JavaDrawViewerTest
All Implemented Interfaces:
junit.framework.Test

public class JavaDrawViewerTest
extends junit.framework.TestCase

TestCase JavaDrawViewerTest is generated by JUnitDoclet to hold the tests for JavaDrawViewer.

See Also:
JavaDrawViewer

Constructor Summary
JavaDrawViewerTest(java.lang.String name)
          Constructor JavaDrawViewerTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 JavaDrawViewer createInstance()
          Factory method for instances of the class to be tested.
 void testAddViewChangeListener()
          Method testAddViewChangeListener is testing addViewChangeListener
 void testDrawing()
          Method testDrawing is testing drawing
 void testFigureSelectionChanged()
          Method testFigureSelectionChanged is testing figureSelectionChanged
 void testGetUndoManager()
          Method testGetUndoManager is testing getUndoManager
 void testInit()
          Method testInit is testing init
 void testRemoveViewChangeListener()
          Method testRemoveViewChangeListener is testing removeViewChangeListener
 void testSetTool()
          Method testSetTool is testing setTool
 void testTool()
          Method testTool is testing tool
 void testToolDone()
          Method testToolDone is testing toolDone
 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
 void testViews()
          Method testViews is testing views
 
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

JavaDrawViewerTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testInit

public void testInit()
              throws java.lang.Exception
Method testInit is testing init

Throws:
java.lang.Exception
See Also:
JavaDrawViewer.init()

testAddViewChangeListener

public void testAddViewChangeListener()
                               throws java.lang.Exception
Method testAddViewChangeListener is testing addViewChangeListener

Throws:
java.lang.Exception
See Also:
JavaDrawViewer.addViewChangeListener(org.jhotdraw.framework.ViewChangeListener)

testRemoveViewChangeListener

public void testRemoveViewChangeListener()
                                  throws java.lang.Exception
Method testRemoveViewChangeListener is testing removeViewChangeListener

Throws:
java.lang.Exception
See Also:
JavaDrawViewer.removeViewChangeListener(org.jhotdraw.framework.ViewChangeListener)

testView

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

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

testViews

public void testViews()
               throws java.lang.Exception
Method testViews is testing views

Throws:
java.lang.Exception
See Also:
JavaDrawViewer.views()

testDrawing

public void testDrawing()
                 throws java.lang.Exception
Method testDrawing is testing drawing

Throws:
java.lang.Exception
See Also:
JavaDrawViewer.drawing()

testTool

public void testTool()
              throws java.lang.Exception
Method testTool is testing tool

Throws:
java.lang.Exception
See Also:
JavaDrawViewer.tool()

testSetTool

public void testSetTool()
                 throws java.lang.Exception
Method testSetTool is testing setTool

Throws:
java.lang.Exception
See Also:
JavaDrawViewer.setTool(org.jhotdraw.framework.Tool)

testToolDone

public void testToolDone()
                  throws java.lang.Exception
Method testToolDone is testing toolDone

Throws:
java.lang.Exception
See Also:
JavaDrawViewer.toolDone()

testFigureSelectionChanged

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

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

testGetUndoManager

public void testGetUndoManager()
                        throws java.lang.Exception
Method testGetUndoManager is testing getUndoManager

Throws:
java.lang.Exception
See Also:
JavaDrawViewer.getUndoManager()

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