org.jhotdraw.test.contrib
Class GraphicalCompositeFigureTest

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

public class GraphicalCompositeFigureTest
extends junit.framework.TestCase

TestCase GraphicalCompositeFigureTest is generated by JUnitDoclet to hold the tests for GraphicalCompositeFigure.

See Also:
GraphicalCompositeFigure

Constructor Summary
GraphicalCompositeFigureTest(java.lang.String name)
          Constructor GraphicalCompositeFigureTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 GraphicalCompositeFigure createInstance()
          Factory method for instances of the class to be tested.
 void testBasicDisplayBox()
          Method testBasicDisplayBox is testing basicDisplayBox
 void testClone()
          Method testClone is testing clone
 void testDisplayBox()
          Method testDisplayBox is testing displayBox
 void testDraw()
          Method testDraw is testing draw
 void testFigureRequestRemove()
          Method testFigureRequestRemove is testing figureRequestRemove
 void testGetAttribute()
          Method testGetAttribute is testing getAttribute
 void testHandles()
          Method testHandles is testing handles
 void testLayout()
          Method testLayout is testing layout
 void testRead()
          Method testRead is testing read
 void testSetAttribute()
          Method testSetAttribute is testing setAttribute
 void testSetGetLayouter()
          Method testSetGetLayouter is testing setLayouter and getLayouter together by setting some value and verifying it by reading.
 void testSetGetPresentationFigure()
          Method testSetGetPresentationFigure is testing setPresentationFigure and getPresentationFigure together by setting some value and verifying it by reading.
 void testUpdate()
          Method testUpdate is testing update
 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

GraphicalCompositeFigureTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testClone

public void testClone()
               throws java.lang.Exception
Method testClone is testing clone

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.clone()

testDisplayBox

public void testDisplayBox()
                    throws java.lang.Exception
Method testDisplayBox is testing displayBox

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.displayBox()

testBasicDisplayBox

public void testBasicDisplayBox()
                         throws java.lang.Exception
Method testBasicDisplayBox is testing basicDisplayBox

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.basicDisplayBox(java.awt.Point, java.awt.Point)

testUpdate

public void testUpdate()
                throws java.lang.Exception
Method testUpdate is testing update

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.update()

testDraw

public void testDraw()
              throws java.lang.Exception
Method testDraw is testing draw

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.draw(java.awt.Graphics)

testHandles

public void testHandles()
                 throws java.lang.Exception
Method testHandles is testing handles

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.handles()

testGetAttribute

public void testGetAttribute()
                      throws java.lang.Exception
Method testGetAttribute is testing getAttribute

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.getAttribute(java.lang.String)

testSetAttribute

public void testSetAttribute()
                      throws java.lang.Exception
Method testSetAttribute is testing setAttribute

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.setAttribute(java.lang.String, java.lang.Object)

testSetGetPresentationFigure

public void testSetGetPresentationFigure()
                                  throws java.lang.Exception
Method testSetGetPresentationFigure is testing setPresentationFigure and getPresentationFigure together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.setPresentationFigure(org.jhotdraw.framework.Figure), GraphicalCompositeFigure.getPresentationFigure()

testLayout

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

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.layout()

testSetGetLayouter

public void testSetGetLayouter()
                        throws java.lang.Exception
Method testSetGetLayouter is testing setLayouter and getLayouter together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.setLayouter(org.jhotdraw.contrib.Layouter), GraphicalCompositeFigure.getLayouter()

testFigureRequestRemove

public void testFigureRequestRemove()
                             throws java.lang.Exception
Method testFigureRequestRemove is testing figureRequestRemove

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.figureRequestRemove(org.jhotdraw.framework.FigureChangeEvent)

testRead

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

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

testWrite

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

Throws:
java.lang.Exception
See Also:
GraphicalCompositeFigure.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