org.jhotdraw.test.contrib
Class MDI_DrawApplicationTest

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

public class MDI_DrawApplicationTest
extends junit.framework.TestCase

TestCase MDI_DrawApplicationTest is generated by JUnitDoclet to hold the tests for MDI_DrawApplication.

See Also:
MDI_DrawApplication

Constructor Summary
MDI_DrawApplicationTest(java.lang.String name)
          Constructor MDI_DrawApplicationTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 MDI_DrawApplication createInstance()
          Factory method for instances of the class to be tested.
 void testGetDefaultDrawingTitle()
          Method testGetDefaultDrawingTitle is testing getDefaultDrawingTitle
 void testNewView()
          Method testNewView is testing newView
 void testNewWindow()
          Method testNewWindow is testing newWindow
 void testPromptNew()
          Method testPromptNew is testing promptNew
 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 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

MDI_DrawApplicationTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testPromptNew

public void testPromptNew()
                   throws java.lang.Exception
Method testPromptNew is testing promptNew

Throws:
java.lang.Exception
See Also:
MDI_DrawApplication.promptNew()

testNewWindow

public void testNewWindow()
                   throws java.lang.Exception
Method testNewWindow is testing newWindow

Throws:
java.lang.Exception
See Also:
MDI_DrawApplication.newWindow(org.jhotdraw.framework.Drawing)

testNewView

public void testNewView()
                 throws java.lang.Exception
Method testNewView is testing newView

Throws:
java.lang.Exception
See Also:
MDI_DrawApplication.newView()

testViews

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

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

testGetDefaultDrawingTitle

public void testGetDefaultDrawingTitle()
                                throws java.lang.Exception
Method testGetDefaultDrawingTitle is testing getDefaultDrawingTitle

Throws:
java.lang.Exception
See Also:
MDI_DrawApplication.getDefaultDrawingTitle()

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