org.jhotdraw.test.figures
Class PolyLineFigureTest

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

public class PolyLineFigureTest
extends junit.framework.TestCase

TestCase PolyLineFigureTest is generated by JUnitDoclet to hold the tests for PolyLineFigure.

See Also:
PolyLineFigure

Constructor Summary
PolyLineFigureTest(java.lang.String name)
          Constructor PolyLineFigureTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 PolyLineFigure 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 testConnectorAt()
          Method testConnectorAt is testing connectorAt
 void testContainsPoint()
          Method testContainsPoint is testing containsPoint
 void testDisplayBox()
          Method testDisplayBox is testing displayBox
 void testDraw()
          Method testDraw is testing draw
 void testFindSegment()
          Method testFindSegment is testing findSegment
 void testGetAttribute()
          Method testGetAttribute is testing getAttribute
 void testHandles()
          Method testHandles is testing handles
 void testInsertPointAt()
          Method testInsertPointAt is testing insertPointAt
 void testIsEmpty()
          Method testIsEmpty is testing isEmpty
 void testJoinSegments()
          Method testJoinSegments is testing joinSegments
 void testLocator()
          Method testLocator is testing locator
 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 testSetAttribute()
          Method testSetAttribute is testing setAttribute
 void testSetGetEndDecoration()
          Method testSetGetEndDecoration is testing setEndDecoration and getEndDecoration together by setting some value and verifying it by reading.
 void testSetGetStartDecoration()
          Method testSetGetStartDecoration is testing setStartDecoration and getStartDecoration together by setting some value and verifying it by reading.
 void testSetPointAt()
          Method testSetPointAt is testing setPointAt
 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

PolyLineFigureTest

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

Method Detail

createInstance

public PolyLineFigure 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:
PolyLineFigure.displayBox()

testIsEmpty

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

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

testHandles

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

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

testBasicDisplayBox

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

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

testAddPoint

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

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

testPoints

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

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

testPointCount

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

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

testSetPointAt

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

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

testInsertPointAt

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

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

testRemovePointAt

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

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

testSplitSegment

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

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

testPointAt

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

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

testJoinSegments

public void testJoinSegments()
                      throws java.lang.Exception
Method testJoinSegments is testing joinSegments

Throws:
java.lang.Exception
See Also:
PolyLineFigure.joinSegments(int, int)

testConnectorAt

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

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

testSetGetStartDecoration

public void testSetGetStartDecoration()
                               throws java.lang.Exception
Method testSetGetStartDecoration is testing setStartDecoration and getStartDecoration together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
PolyLineFigure.setStartDecoration(org.jhotdraw.figures.LineDecoration), PolyLineFigure.getStartDecoration()

testSetGetEndDecoration

public void testSetGetEndDecoration()
                             throws java.lang.Exception
Method testSetGetEndDecoration is testing setEndDecoration and getEndDecoration together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
PolyLineFigure.setEndDecoration(org.jhotdraw.figures.LineDecoration), PolyLineFigure.getEndDecoration()

testDraw

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

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

testContainsPoint

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

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

testFindSegment

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

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

testGetAttribute

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

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

testSetAttribute

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

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

testWrite

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

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

testRead

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

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

testLocator

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

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

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