org.jhotdraw.test.contrib
Class StandardLayouterTest

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

public class StandardLayouterTest
extends junit.framework.TestCase

TestCase StandardLayouterTest is generated by JUnitDoclet to hold the tests for StandardLayouter.

See Also:
StandardLayouter

Constructor Summary
StandardLayouterTest(java.lang.String name)
          Constructor StandardLayouterTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 StandardLayouter createInstance()
          Factory method for instances of the class to be tested.
 void testCalculateLayout()
          Method testCalculateLayout is testing calculateLayout
 void testCreate()
          Method testCreate is testing create
 void testLayout()
          Method testLayout is testing layout
 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 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

StandardLayouterTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testCreate

public void testCreate()
                throws java.lang.Exception
Method testCreate is testing create

Throws:
java.lang.Exception
See Also:
StandardLayouter.create(org.jhotdraw.contrib.Layoutable)

testCalculateLayout

public void testCalculateLayout()
                         throws java.lang.Exception
Method testCalculateLayout is testing calculateLayout

Throws:
java.lang.Exception
See Also:
StandardLayouter.calculateLayout(java.awt.Point, java.awt.Point)

testLayout

public void testLayout()
                throws java.lang.Exception
Method testLayout is testing layout

Throws:
java.lang.Exception
See Also:
StandardLayouter.layout(java.awt.Point, java.awt.Point)

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