org.jhotdraw.test.contrib
Class PolygonFigureTest

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

public class PolygonFigureTest
extends junit.framework.TestCase

TestCase PolygonFigureTest is generated by JUnitDoclet to hold the tests for PolygonFigure.

See Also:
PolygonFigure

Constructor Summary
PolygonFigureTest(java.lang.String name)
          Constructor PolygonFigureTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 PolygonFigure createInstance()
          Factory method for instances of the class to be tested.
 void testAddPoint()
          Method testAddPoint is testing addPoint
 void testBasicDisplayBox()
          Method testBasicDisplayBox is testing basicDisplayBox
 void testBasicMoveBy()
          Method testBasicMoveBy is testing basicMoveBy
 void testBounds()
          Method testBounds is testing bounds
 void testCenter()
          Method testCenter is testing center
 void testChop()
          Method testChop is testing chop
 void testConnectorAt()
          Method testConnectorAt is testing connectorAt
 void testContainsPoint()
          Method testContainsPoint is testing containsPoint
 void testDisplayBox()
          Method testDisplayBox is testing displayBox
 void testDrawBackground()
          Method testDrawBackground is testing drawBackground
 void testDrawFrame()
          Method testDrawFrame is testing drawFrame
 void testFindSegment()
          Method testFindSegment is testing findSegment
 void testGetInternalPolygon()
          Method testGetInternalPolygon is testing getInternalPolygon
 void testGetPolygon()
          Method testGetPolygon is testing getPolygon
 void testHandles()
          Method testHandles is testing handles
 void testInsertPointAt()
          Method testInsertPointAt is testing insertPointAt
 void testIsEmpty()
          Method testIsEmpty is testing isEmpty
 void testLocator()
          Method testLocator is testing locator
 void testOutermostPoint()
          Method testOutermostPoint is testing outermostPoint
 void testPointAt()
          Method testPointAt is testing pointAt
 void testPointCount()
          Method testPointCount is testing pointCount
 void testPoints()
          Method testPoints is testing points
 void testRead()
          Method testRead is testing read
 void testRemovePointAt()
          Method testRemovePointAt is testing removePointAt
 void testScaleRotate()
          Method testScaleRotate is testing scaleRotate
 void testSetPointAt()
          Method testSetPointAt is testing setPointAt
 void testSmoothPoints()
          Method testSmoothPoints is testing smoothPoints
 void testSplitSegment()
          Method testSplitSegment is testing splitSegment
 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

PolygonFigureTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testDisplayBox

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

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

testIsEmpty

public void testIsEmpty()
                 throws java.lang.Exception
Method testIsEmpty is testing isEmpty

Throws:
java.lang.Exception
See Also:
PolygonFigure.isEmpty()

testHandles

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

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

testBasicDisplayBox

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

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

testGetPolygon

public void testGetPolygon()
                    throws java.lang.Exception
Method testGetPolygon is testing getPolygon

Throws:
java.lang.Exception
See Also:
PolygonFigure.getPolygon()

testGetInternalPolygon

public void testGetInternalPolygon()
                            throws java.lang.Exception
Method testGetInternalPolygon is testing getInternalPolygon

Throws:
java.lang.Exception
See Also:
PolygonFigure.getInternalPolygon()

testCenter

public void testCenter()
                throws java.lang.Exception
Method testCenter is testing center

Throws:
java.lang.Exception
See Also:
PolygonFigure.center()

testPoints

public void testPoints()
                throws java.lang.Exception
Method testPoints is testing points

Throws:
java.lang.Exception
See Also:
PolygonFigure.points()

testPointCount

public void testPointCount()
                    throws java.lang.Exception
Method testPointCount is testing pointCount

Throws:
java.lang.Exception
See Also:
PolygonFigure.pointCount()

testBasicMoveBy

public void testBasicMoveBy()
                     throws java.lang.Exception
Method testBasicMoveBy is testing basicMoveBy

Throws:
java.lang.Exception
See Also:
PolygonFigure.basicMoveBy(int, int)

testDrawBackground

public void testDrawBackground()
                        throws java.lang.Exception
Method testDrawBackground is testing drawBackground

Throws:
java.lang.Exception
See Also:
PolygonFigure.drawBackground(java.awt.Graphics)

testDrawFrame

public void testDrawFrame()
                   throws java.lang.Exception
Method testDrawFrame is testing drawFrame

Throws:
java.lang.Exception
See Also:
PolygonFigure.drawFrame(java.awt.Graphics)

testContainsPoint

public void testContainsPoint()
                       throws java.lang.Exception
Method testContainsPoint is testing containsPoint

Throws:
java.lang.Exception
See Also:
PolygonFigure.containsPoint(int, int)

testConnectorAt

public void testConnectorAt()
                     throws java.lang.Exception
Method testConnectorAt is testing connectorAt

Throws:
java.lang.Exception
See Also:
PolygonFigure.connectorAt(int, int)

testAddPoint

public void testAddPoint()
                  throws java.lang.Exception
Method testAddPoint is testing addPoint

Throws:
java.lang.Exception
See Also:
PolygonFigure.addPoint(int, int)

testSetPointAt

public void testSetPointAt()
                    throws java.lang.Exception
Method testSetPointAt is testing setPointAt

Throws:
java.lang.Exception
See Also:
PolygonFigure.setPointAt(java.awt.Point, int)

testInsertPointAt

public void testInsertPointAt()
                       throws java.lang.Exception
Method testInsertPointAt is testing insertPointAt

Throws:
java.lang.Exception
See Also:
PolygonFigure.insertPointAt(java.awt.Point, int)

testRemovePointAt

public void testRemovePointAt()
                       throws java.lang.Exception
Method testRemovePointAt is testing removePointAt

Throws:
java.lang.Exception
See Also:
PolygonFigure.removePointAt(int)

testScaleRotate

public void testScaleRotate()
                     throws java.lang.Exception
Method testScaleRotate is testing scaleRotate

Throws:
java.lang.Exception
See Also:
PolygonFigure.scaleRotate(java.awt.Point, java.awt.Polygon, java.awt.Point)

testSmoothPoints

public void testSmoothPoints()
                      throws java.lang.Exception
Method testSmoothPoints is testing smoothPoints

Throws:
java.lang.Exception
See Also:
PolygonFigure.smoothPoints()

testSplitSegment

public void testSplitSegment()
                      throws java.lang.Exception
Method testSplitSegment is testing splitSegment

Throws:
java.lang.Exception
See Also:
PolygonFigure.splitSegment(int, int)

testPointAt

public void testPointAt()
                 throws java.lang.Exception
Method testPointAt is testing pointAt

Throws:
java.lang.Exception
See Also:
PolygonFigure.pointAt(int)

testOutermostPoint

public void testOutermostPoint()
                        throws java.lang.Exception
Method testOutermostPoint is testing outermostPoint

Throws:
java.lang.Exception
See Also:
PolygonFigure.outermostPoint()

testFindSegment

public void testFindSegment()
                     throws java.lang.Exception
Method testFindSegment is testing findSegment

Throws:
java.lang.Exception
See Also:
PolygonFigure.findSegment(int, int)

testChop

public void testChop()
              throws java.lang.Exception
Method testChop is testing chop

Throws:
java.lang.Exception
See Also:
PolygonFigure.chop(java.awt.Point)

testWrite

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

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

testRead

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

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

testLocator

public void testLocator()
                 throws java.lang.Exception
Method testLocator is testing locator

Throws:
java.lang.Exception
See Also:
PolygonFigure.locator(int)

testBounds

public void testBounds()
                throws java.lang.Exception
Method testBounds is testing bounds

Throws:
java.lang.Exception
See Also:
PolygonFigure.bounds(java.awt.Polygon)

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