org.jhotdraw.test.figures
Class LineFigureTest

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

public class LineFigureTest
extends junit.framework.TestCase

TestCase LineFigureTest is generated by JUnitDoclet to hold the tests for LineFigure.

See Also:
LineFigure

Constructor Summary
LineFigureTest(java.lang.String name)
          Constructor LineFigureTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 LineFigure createInstance()
          Factory method for instances of the class to be tested.
 void testBasicDisplayBox()
          Method testBasicDisplayBox is testing basicDisplayBox
 void testEndPoint()
          Method testEndPoint is testing endPoint
 void testSetPoints()
          Method testSetPoints is testing setPoints
 void testStartPoint()
          Method testStartPoint is testing startPoint
 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

LineFigureTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testStartPoint

public void testStartPoint()
                    throws java.lang.Exception
Method testStartPoint is testing startPoint

Throws:
java.lang.Exception
See Also:
LineFigure.startPoint()

testEndPoint

public void testEndPoint()
                  throws java.lang.Exception
Method testEndPoint is testing endPoint

Throws:
java.lang.Exception
See Also:
LineFigure.endPoint()

testSetPoints

public void testSetPoints()
                   throws java.lang.Exception
Method testSetPoints is testing setPoints

Throws:
java.lang.Exception
See Also:
LineFigure.setPoints(java.awt.Point, java.awt.Point)

testBasicDisplayBox

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

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