org.jhotdraw.test.contrib
Class JPanelDesktopTest

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

public class JPanelDesktopTest
extends JHDTestCase

TestCase JPanelDesktopTest is generated by JUnitDoclet to hold the tests for JPanelDesktop.

See Also:
JPanelDesktop

Field Summary
 
Fields inherited from class org.jhotdraw.test.JHDTestCase
myDrawingEditor
 
Constructor Summary
JPanelDesktopTest(java.lang.String name)
          Constructor JPanelDesktopTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 JPanelDesktop createInstance()
          Factory method for instances of the class to be tested.
 void testAddDesktopListener()
          Method testAddDesktopListener is testing addDesktopListener
 void testAddToDesktop()
          Method testAddToDesktop is testing addToDesktop
 void testGetActiveDrawingView()
          Method testGetActiveDrawingView is testing getActiveDrawingView
 void testGetAllFromDesktop()
          Method testGetAllFromDesktop is testing getAllFromDesktop
 void testRemoveAllFromDesktop()
          Method testRemoveAllFromDesktop is testing removeAllFromDesktop
 void testRemoveDesktopListener()
          Method testRemoveDesktopListener is testing removeDesktopListener
 void testRemoveFromDesktop()
          Method testRemoveFromDesktop is testing removeFromDesktop
 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

JPanelDesktopTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testGetActiveDrawingView

public void testGetActiveDrawingView()
                              throws java.lang.Exception
Method testGetActiveDrawingView is testing getActiveDrawingView

Throws:
java.lang.Exception
See Also:
JPanelDesktop.getActiveDrawingView()

testAddToDesktop

public void testAddToDesktop()
                      throws java.lang.Exception
Method testAddToDesktop is testing addToDesktop

Throws:
java.lang.Exception
See Also:
JPanelDesktop.addToDesktop(org.jhotdraw.framework.DrawingView, int)

testRemoveFromDesktop

public void testRemoveFromDesktop()
                           throws java.lang.Exception
Method testRemoveFromDesktop is testing removeFromDesktop

Throws:
java.lang.Exception
See Also:
JPanelDesktop.removeFromDesktop(org.jhotdraw.framework.DrawingView, int)

testRemoveAllFromDesktop

public void testRemoveAllFromDesktop()
                              throws java.lang.Exception
Method testRemoveAllFromDesktop is testing removeAllFromDesktop

Throws:
java.lang.Exception
See Also:
JPanelDesktop.removeAllFromDesktop(int)

testGetAllFromDesktop

public void testGetAllFromDesktop()
                           throws java.lang.Exception
Method testGetAllFromDesktop is testing getAllFromDesktop

Throws:
java.lang.Exception
See Also:
JPanelDesktop.getAllFromDesktop(int)

testAddDesktopListener

public void testAddDesktopListener()
                            throws java.lang.Exception
Method testAddDesktopListener is testing addDesktopListener

Throws:
java.lang.Exception
See Also:
JPanelDesktop.addDesktopListener(org.jhotdraw.contrib.DesktopListener)

testRemoveDesktopListener

public void testRemoveDesktopListener()
                               throws java.lang.Exception
Method testRemoveDesktopListener is testing removeDesktopListener

Throws:
java.lang.Exception
See Also:
JPanelDesktop.removeDesktopListener(org.jhotdraw.contrib.DesktopListener)

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