org.jhotdraw.test.contrib
Class DesktopEventServiceTest

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.DesktopEventServiceTest
All Implemented Interfaces:
junit.framework.Test

public class DesktopEventServiceTest
extends JHDTestCase

TestCase DesktopEventServiceTest is generated by JUnitDoclet to hold the tests for DesktopEventService.

See Also:
DesktopEventService

Field Summary
 
Fields inherited from class org.jhotdraw.test.JHDTestCase
myDrawingEditor
 
Constructor Summary
DesktopEventServiceTest(java.lang.String name)
          Constructor DesktopEventServiceTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 DesktopEventService createInstance()
          Factory method for instances of the class to be tested.
 void testAddComponent()
          Method testAddComponent is testing addComponent
 void testAddDesktopListener()
          Method testAddDesktopListener is testing addDesktopListener
 void testGetActiveDrawingView()
          Method testGetActiveDrawingView is testing getActiveDrawingView
 void testGetDrawingViews()
          Method testGetDrawingViews is testing getDrawingViews
 void testRemoveAllComponents()
          Method testRemoveAllComponents is testing removeAllComponents
 void testRemoveComponent()
          Method testRemoveComponent is testing removeComponent
 void testRemoveDesktopListener()
          Method testRemoveDesktopListener is testing removeDesktopListener
 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

DesktopEventServiceTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testAddComponent

public void testAddComponent()
                      throws java.lang.Exception
Method testAddComponent is testing addComponent

Throws:
java.lang.Exception
See Also:
DesktopEventService.addComponent(java.awt.Component)

testRemoveComponent

public void testRemoveComponent()
                         throws java.lang.Exception
Method testRemoveComponent is testing removeComponent

Throws:
java.lang.Exception
See Also:
DesktopEventService.removeComponent(org.jhotdraw.framework.DrawingView)

testRemoveAllComponents

public void testRemoveAllComponents()
                             throws java.lang.Exception
Method testRemoveAllComponents is testing removeAllComponents

Throws:
java.lang.Exception
See Also:
DesktopEventService.removeAllComponents()

testAddDesktopListener

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

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

testRemoveDesktopListener

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

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

testGetDrawingViews

public void testGetDrawingViews()
                         throws java.lang.Exception
Method testGetDrawingViews is testing getDrawingViews

Throws:
java.lang.Exception
See Also:
DesktopEventService.getDrawingViews(java.awt.Component[])

testGetActiveDrawingView

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

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

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