org.jhotdraw.test.contrib
Class SimpleLayouterTest

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

public class SimpleLayouterTest
extends junit.framework.TestCase

TestCase SimpleLayouterTest is generated by JUnitDoclet to hold the tests for SimpleLayouter.

See Also:
SimpleLayouter

Constructor Summary
SimpleLayouterTest(java.lang.String name)
          Constructor SimpleLayouterTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 SimpleLayouter 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 testRead()
          Method testRead is testing read
 void testSetGetInsets()
          Method testSetGetInsets is testing setInsets and getInsets together by setting some value and verifying it by reading.
 void testSetGetLayoutable()
          Method testSetGetLayoutable is testing setLayoutable and getLayoutable together by setting some value and verifying it by reading.
 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 testWrite()
          Method testWrite is testing write
 
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

SimpleLayouterTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testSetGetLayoutable

public void testSetGetLayoutable()
                          throws java.lang.Exception
Method testSetGetLayoutable is testing setLayoutable and getLayoutable together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
SimpleLayouter.setLayoutable(org.jhotdraw.contrib.Layoutable), SimpleLayouter.getLayoutable()

testSetGetInsets

public void testSetGetInsets()
                      throws java.lang.Exception
Method testSetGetInsets is testing setInsets and getInsets together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
SimpleLayouter.setInsets(java.awt.Insets), SimpleLayouter.getInsets()

testCreate

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

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

testCalculateLayout

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

Throws:
java.lang.Exception
See Also:
SimpleLayouter.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:
SimpleLayouter.layout(java.awt.Point, java.awt.Point)

testRead

public void testRead()
              throws java.lang.Exception
Method testRead is testing read

Throws:
java.lang.Exception
See Also:
SimpleLayouter.read(org.jhotdraw.util.StorableInput)

testWrite

public void testWrite()
               throws java.lang.Exception
Method testWrite is testing write

Throws:
java.lang.Exception
See Also:
SimpleLayouter.write(org.jhotdraw.util.StorableOutput)

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