org.jhotdraw.test.standard
Class NullDrawingViewTest

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

public class NullDrawingViewTest
extends JHDTestCase

TestCase NullDrawingViewTest is generated by JUnitDoclet to hold the tests for NullDrawingView.

See Also:
NullDrawingView

Field Summary
 
Fields inherited from class org.jhotdraw.test.JHDTestCase
myDrawingEditor
 
Constructor Summary
NullDrawingViewTest(java.lang.String name)
          Constructor NullDrawingViewTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 NullDrawingView createInstance()
          Factory method for instances of the class to be tested.
 void testAdd()
          Method testAdd is testing add
 void testAddAll()
          Method testAddAll is testing addAll
 void testAddFigureSelectionListener()
          Method testAddFigureSelectionListener is testing addFigureSelectionListener
 void testAddToSelection()
          Method testAddToSelection is testing addToSelection
 void testAddToSelectionAll()
          Method testAddToSelectionAll is testing addToSelectionAll
 void testCheckDamage()
          Method testCheckDamage is testing checkDamage
 void testClearSelection()
          Method testClearSelection is testing clearSelection
 void testCreateImage()
          Method testCreateImage is testing createImage
 void testDraw()
          Method testDraw is testing draw
 void testDrawAll()
          Method testDrawAll is testing drawAll
 void testDrawBackground()
          Method testDrawBackground is testing drawBackground
 void testDrawDrawing()
          Method testDrawDrawing is testing drawDrawing
 void testDrawHandles()
          Method testDrawHandles is testing drawHandles
 void testDrawing()
          Method testDrawing is testing drawing
 void testDrawingInvalidated()
          Method testDrawingInvalidated is testing drawingInvalidated
 void testDrawingRequestUpdate()
          Method testDrawingRequestUpdate is testing drawingRequestUpdate
 void testDrawingTitleChanged()
          Method testDrawingTitleChanged is testing drawingTitleChanged
 void testEditor()
          Method testEditor is testing editor
 void testFindHandle()
          Method testFindHandle is testing findHandle
 void testFreezeView()
          Method testFreezeView is testing freezeView
 void testGetConnectionFigures()
          Method testGetConnectionFigures is testing getConnectionFigures
 void testGetFigureSelection()
          Method testGetFigureSelection is testing getFigureSelection
 void testGetGraphics()
          Method testGetGraphics is testing getGraphics
 void testGetManagedDrawingView()
          Method testGetManagedDrawingView is testing getManagedDrawingView
 void testGetMinimumSize()
          Method testGetMinimumSize is testing getMinimumSize
 void testGetPreferredSize()
          Method testGetPreferredSize is testing getPreferredSize
 void testGetSize()
          Method testGetSize is testing getSize
 void testInsertFigures()
          Method testInsertFigures is testing insertFigures
 void testIsFigureSelected()
          Method testIsFigureSelected is testing isFigureSelected
 void testIsInteractive()
          Method testIsInteractive is testing isInteractive
 void testLastClick()
          Method testLastClick is testing lastClick
 void testPaint()
          Method testPaint is testing paint
 void testRemove()
          Method testRemove is testing remove
 void testRemoveFigureSelectionListener()
          Method testRemoveFigureSelectionListener is testing removeFigureSelectionListener
 void testRemoveFromSelection()
          Method testRemoveFromSelection is testing removeFromSelection
 void testRepairDamage()
          Method testRepairDamage is testing repairDamage
 void testSelection()
          Method testSelection is testing selection
 void testSelectionCount()
          Method testSelectionCount is testing selectionCount
 void testSelectionZOrdered()
          Method testSelectionZOrdered is testing selectionZOrdered
 void testSetCursor()
          Method testSetCursor is testing setCursor
 void testSetDrawing()
          Method testSetDrawing is testing setDrawing
 void testSetEditor()
          Method testSetEditor is testing setEditor
 void testSetGetBackground()
          Method testSetGetBackground is testing setBackground and getBackground together by setting some value and verifying it by reading.
 void testSetGetConstrainer()
          NullDrawingView.setConstrainer is a no-op.
 void testSetGetDisplayUpdate()
          Method testSetGetDisplayUpdate is testing setDisplayUpdate and getDisplayUpdate together by setting some value and verifying it by reading.
 void testToggleSelection()
          Method testToggleSelection is testing toggleSelection
 void testTool()
          Method testTool is testing tool
 void testUnfreezeView()
          Method testUnfreezeView is testing unfreezeView
 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 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

NullDrawingViewTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testSetEditor

public void testSetEditor()
                   throws java.lang.Exception
Method testSetEditor is testing setEditor

Throws:
java.lang.Exception
See Also:
NullDrawingView.setEditor(org.jhotdraw.framework.DrawingEditor)

testTool

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

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

testDrawing

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

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

testSetDrawing

public void testSetDrawing()
                    throws java.lang.Exception
Method testSetDrawing is testing setDrawing

Throws:
java.lang.Exception
See Also:
NullDrawingView.setDrawing(org.jhotdraw.framework.Drawing)

testEditor

public void testEditor()
                throws java.lang.Exception
Method testEditor is testing editor

Throws:
java.lang.Exception
See Also:
NullDrawingView.editor()

testAdd

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

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

testRemove

public void testRemove()
                throws java.lang.Exception
Method testRemove is testing remove

Throws:
java.lang.Exception
See Also:
NullDrawingView.remove(org.jhotdraw.framework.Figure)

testAddAll

public void testAddAll()
                throws java.lang.Exception
Method testAddAll is testing addAll

Throws:
java.lang.Exception
See Also:
NullDrawingView.addAll(java.util.Collection)

testGetSize

public void testGetSize()
                 throws java.lang.Exception
Method testGetSize is testing getSize

Throws:
java.lang.Exception
See Also:
NullDrawingView.getSize()

testGetMinimumSize

public void testGetMinimumSize()
                        throws java.lang.Exception
Method testGetMinimumSize is testing getMinimumSize

Throws:
java.lang.Exception
See Also:
NullDrawingView.getMinimumSize()

testGetPreferredSize

public void testGetPreferredSize()
                          throws java.lang.Exception
Method testGetPreferredSize is testing getPreferredSize

Throws:
java.lang.Exception
See Also:
NullDrawingView.getPreferredSize()

testSetGetDisplayUpdate

public void testSetGetDisplayUpdate()
                             throws java.lang.Exception
Method testSetGetDisplayUpdate is testing setDisplayUpdate and getDisplayUpdate together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
NullDrawingView.setDisplayUpdate(org.jhotdraw.framework.Painter), NullDrawingView.getDisplayUpdate()

testSelection

public void testSelection()
                   throws java.lang.Exception
Method testSelection is testing selection

Throws:
java.lang.Exception
See Also:
NullDrawingView.selection()

testSelectionZOrdered

public void testSelectionZOrdered()
                           throws java.lang.Exception
Method testSelectionZOrdered is testing selectionZOrdered

Throws:
java.lang.Exception
See Also:
NullDrawingView.selectionZOrdered()

testSelectionCount

public void testSelectionCount()
                        throws java.lang.Exception
Method testSelectionCount is testing selectionCount

Throws:
java.lang.Exception
See Also:
NullDrawingView.selectionCount()

testIsFigureSelected

public void testIsFigureSelected()
                          throws java.lang.Exception
Method testIsFigureSelected is testing isFigureSelected

Throws:
java.lang.Exception
See Also:
NullDrawingView.isFigureSelected(org.jhotdraw.framework.Figure)

testAddToSelection

public void testAddToSelection()
                        throws java.lang.Exception
Method testAddToSelection is testing addToSelection

Throws:
java.lang.Exception
See Also:
NullDrawingView.addToSelection(org.jhotdraw.framework.Figure)

testAddToSelectionAll

public void testAddToSelectionAll()
                           throws java.lang.Exception
Method testAddToSelectionAll is testing addToSelectionAll

Throws:
java.lang.Exception
See Also:
NullDrawingView.addToSelectionAll(java.util.Collection)

testRemoveFromSelection

public void testRemoveFromSelection()
                             throws java.lang.Exception
Method testRemoveFromSelection is testing removeFromSelection

Throws:
java.lang.Exception
See Also:
NullDrawingView.removeFromSelection(org.jhotdraw.framework.Figure)

testToggleSelection

public void testToggleSelection()
                         throws java.lang.Exception
Method testToggleSelection is testing toggleSelection

Throws:
java.lang.Exception
See Also:
NullDrawingView.toggleSelection(org.jhotdraw.framework.Figure)

testClearSelection

public void testClearSelection()
                        throws java.lang.Exception
Method testClearSelection is testing clearSelection

Throws:
java.lang.Exception
See Also:
NullDrawingView.clearSelection()

testGetFigureSelection

public void testGetFigureSelection()
                            throws java.lang.Exception
Method testGetFigureSelection is testing getFigureSelection

Throws:
java.lang.Exception
See Also:
NullDrawingView.getFigureSelection()

testFindHandle

public void testFindHandle()
                    throws java.lang.Exception
Method testFindHandle is testing findHandle

Throws:
java.lang.Exception
See Also:
NullDrawingView.findHandle(int, int)

testLastClick

public void testLastClick()
                   throws java.lang.Exception
Method testLastClick is testing lastClick

Throws:
java.lang.Exception
See Also:
NullDrawingView.lastClick()

testSetGetConstrainer

public void testSetGetConstrainer()
                           throws java.lang.Exception
NullDrawingView.setConstrainer is a no-op.

Throws:
java.lang.Exception
See Also:
NullDrawingView.setConstrainer(org.jhotdraw.framework.PointConstrainer), NullDrawingView.getConstrainer()

testCheckDamage

public void testCheckDamage()
                     throws java.lang.Exception
Method testCheckDamage is testing checkDamage

Throws:
java.lang.Exception
See Also:
NullDrawingView.checkDamage()

testRepairDamage

public void testRepairDamage()
                      throws java.lang.Exception
Method testRepairDamage is testing repairDamage

Throws:
java.lang.Exception
See Also:
NullDrawingView.repairDamage()

testPaint

public void testPaint()
               throws java.lang.Exception
Method testPaint is testing paint

Throws:
java.lang.Exception
See Also:
NullDrawingView.paint(java.awt.Graphics)

testCreateImage

public void testCreateImage()
                     throws java.lang.Exception
Method testCreateImage is testing createImage

Throws:
java.lang.Exception
See Also:
NullDrawingView.createImage(int, int)

testGetGraphics

public void testGetGraphics()
                     throws java.lang.Exception
Method testGetGraphics is testing getGraphics

Throws:
java.lang.Exception
See Also:
NullDrawingView.getGraphics()

testSetGetBackground

public void testSetGetBackground()
                          throws java.lang.Exception
Method testSetGetBackground is testing setBackground and getBackground together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
NullDrawingView.setBackground(java.awt.Color), NullDrawingView.getBackground()

testDrawAll

public void testDrawAll()
                 throws java.lang.Exception
Method testDrawAll is testing drawAll

Throws:
java.lang.Exception
See Also:
NullDrawingView.drawAll(java.awt.Graphics)

testDraw

public void testDraw()
              throws java.lang.Exception
Method testDraw is testing draw

Throws:
java.lang.Exception
See Also:
NullDrawingView.draw(java.awt.Graphics, org.jhotdraw.framework.FigureEnumeration)

testDrawHandles

public void testDrawHandles()
                     throws java.lang.Exception
Method testDrawHandles is testing drawHandles

Throws:
java.lang.Exception
See Also:
NullDrawingView.drawHandles(java.awt.Graphics)

testDrawDrawing

public void testDrawDrawing()
                     throws java.lang.Exception
Method testDrawDrawing is testing drawDrawing

Throws:
java.lang.Exception
See Also:
NullDrawingView.drawDrawing(java.awt.Graphics)

testDrawBackground

public void testDrawBackground()
                        throws java.lang.Exception
Method testDrawBackground is testing drawBackground

Throws:
java.lang.Exception
See Also:
NullDrawingView.drawBackground(java.awt.Graphics)

testSetCursor

public void testSetCursor()
                   throws java.lang.Exception
Method testSetCursor is testing setCursor

Throws:
java.lang.Exception
See Also:
Component.setCursor(java.awt.Cursor)

testFreezeView

public void testFreezeView()
                    throws java.lang.Exception
Method testFreezeView is testing freezeView

Throws:
java.lang.Exception
See Also:
NullDrawingView.freezeView()

testUnfreezeView

public void testUnfreezeView()
                      throws java.lang.Exception
Method testUnfreezeView is testing unfreezeView

Throws:
java.lang.Exception
See Also:
NullDrawingView.unfreezeView()

testAddFigureSelectionListener

public void testAddFigureSelectionListener()
                                    throws java.lang.Exception
Method testAddFigureSelectionListener is testing addFigureSelectionListener

Throws:
java.lang.Exception
See Also:
NullDrawingView.addFigureSelectionListener(org.jhotdraw.framework.FigureSelectionListener)

testRemoveFigureSelectionListener

public void testRemoveFigureSelectionListener()
                                       throws java.lang.Exception
Method testRemoveFigureSelectionListener is testing removeFigureSelectionListener

Throws:
java.lang.Exception
See Also:
NullDrawingView.removeFigureSelectionListener(org.jhotdraw.framework.FigureSelectionListener)

testGetConnectionFigures

public void testGetConnectionFigures()
                              throws java.lang.Exception
Method testGetConnectionFigures is testing getConnectionFigures

Throws:
java.lang.Exception
See Also:
NullDrawingView.getConnectionFigures(org.jhotdraw.framework.Figure)

testInsertFigures

public void testInsertFigures()
                       throws java.lang.Exception
Method testInsertFigures is testing insertFigures

Throws:
java.lang.Exception
See Also:
NullDrawingView.insertFigures(org.jhotdraw.framework.FigureEnumeration, int, int, boolean)

testDrawingInvalidated

public void testDrawingInvalidated()
                            throws java.lang.Exception
Method testDrawingInvalidated is testing drawingInvalidated

Throws:
java.lang.Exception
See Also:
NullDrawingView.drawingInvalidated(org.jhotdraw.framework.DrawingChangeEvent)

testDrawingRequestUpdate

public void testDrawingRequestUpdate()
                              throws java.lang.Exception
Method testDrawingRequestUpdate is testing drawingRequestUpdate

Throws:
java.lang.Exception
See Also:
NullDrawingView.drawingRequestUpdate(org.jhotdraw.framework.DrawingChangeEvent)

testDrawingTitleChanged

public void testDrawingTitleChanged()
                             throws java.lang.Exception
Method testDrawingTitleChanged is testing drawingTitleChanged

Throws:
java.lang.Exception
See Also:
NullDrawingView.drawingTitleChanged(org.jhotdraw.framework.DrawingChangeEvent)

testIsInteractive

public void testIsInteractive()
                       throws java.lang.Exception
Method testIsInteractive is testing isInteractive

Throws:
java.lang.Exception
See Also:
NullDrawingView.isInteractive()

testGetManagedDrawingView

public void testGetManagedDrawingView()
                               throws java.lang.Exception
Method testGetManagedDrawingView is testing getManagedDrawingView

Throws:
java.lang.Exception
See Also:
NullDrawingView.getManagedDrawingView(org.jhotdraw.framework.DrawingEditor)

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