org.jhotdraw.test.util
Class GeomTest

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

public class GeomTest
extends junit.framework.TestCase

TestCase GeomTest is generated by JUnitDoclet to hold the tests for Geom.

See Also:
Geom

Constructor Summary
GeomTest(java.lang.String name)
          Constructor GeomTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 Geom createInstance()
          Factory method for instances of the class to be tested.
 void testAngleToPoint()
          Method testAngleToPoint is testing angleToPoint
 void testBottomLeftCorner()
          Method testBottomLeftCorner is testing bottomLeftCorner
 void testBottomRightCorner()
          Method testBottomRightCorner is testing bottomRightCorner
 void testCenter()
          Method testCenter is testing center
 void testCorner()
          Method testCorner is testing corner
 void testDirection()
          Method testDirection is testing direction
 void testDistanceFromLine()
          Method testDistanceFromLine is testing distanceFromLine
 void testDistanceFromLine2D()
          Method testDistanceFromLine2D is testing distanceFromLine2D
 void testEast()
          Method testEast is testing east
 void testIntersect()
          Method testIntersect is testing intersect
 void testLength()
          Method testLength is testing length
 void testLength2()
          Method testLength2 is testing length2
 void testLineContainsPoint()
          Method testLineContainsPoint is testing lineContainsPoint
 void testNorth()
          Method testNorth is testing north
 void testOvalAngleToPoint()
          Method testOvalAngleToPoint is testing ovalAngleToPoint
 void testPointToAngle()
          Method testPointToAngle is testing pointToAngle
 void testPolarToPoint()
          Method testPolarToPoint is testing polarToPoint
 void testRange()
          Method testRange is testing range
 void testSouth()
          Method testSouth is testing south
 void testTopLeftCorner()
          Method testTopLeftCorner is testing topLeftCorner
 void testTopRightCorner()
          Method testTopRightCorner is testing topRightCorner
 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 testWest()
          Method testWest is testing west
 
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

GeomTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testLineContainsPoint

public void testLineContainsPoint()
                           throws java.lang.Exception
Method testLineContainsPoint is testing lineContainsPoint

Throws:
java.lang.Exception
See Also:
Geom.lineContainsPoint(int, int, int, int, int, int)

testDirection

public void testDirection()
                   throws java.lang.Exception
Method testDirection is testing direction

Throws:
java.lang.Exception
See Also:
Geom.direction(int, int, int, int)

testSouth

public void testSouth()
               throws java.lang.Exception
Method testSouth is testing south

Throws:
java.lang.Exception
See Also:
Geom.south(java.awt.Rectangle)

testCenter

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

Throws:
java.lang.Exception
See Also:
Geom.center(java.awt.Rectangle)

testWest

public void testWest()
              throws java.lang.Exception
Method testWest is testing west

Throws:
java.lang.Exception
See Also:
Geom.west(java.awt.Rectangle)

testEast

public void testEast()
              throws java.lang.Exception
Method testEast is testing east

Throws:
java.lang.Exception
See Also:
Geom.east(java.awt.Rectangle)

testNorth

public void testNorth()
               throws java.lang.Exception
Method testNorth is testing north

Throws:
java.lang.Exception
See Also:
Geom.north(java.awt.Rectangle)

testCorner

public void testCorner()
                throws java.lang.Exception
Method testCorner is testing corner

Throws:
java.lang.Exception
See Also:
Geom.corner(java.awt.Rectangle)

testTopLeftCorner

public void testTopLeftCorner()
                       throws java.lang.Exception
Method testTopLeftCorner is testing topLeftCorner

Throws:
java.lang.Exception
See Also:
Geom.topLeftCorner(java.awt.Rectangle)

testTopRightCorner

public void testTopRightCorner()
                        throws java.lang.Exception
Method testTopRightCorner is testing topRightCorner

Throws:
java.lang.Exception
See Also:
Geom.topRightCorner(java.awt.Rectangle)

testBottomLeftCorner

public void testBottomLeftCorner()
                          throws java.lang.Exception
Method testBottomLeftCorner is testing bottomLeftCorner

Throws:
java.lang.Exception
See Also:
Geom.bottomLeftCorner(java.awt.Rectangle)

testBottomRightCorner

public void testBottomRightCorner()
                           throws java.lang.Exception
Method testBottomRightCorner is testing bottomRightCorner

Throws:
java.lang.Exception
See Also:
Geom.bottomRightCorner(java.awt.Rectangle)

testRange

public void testRange()
               throws java.lang.Exception
Method testRange is testing range

Throws:
java.lang.Exception
See Also:
Geom.range(int, int, int)

testLength2

public void testLength2()
                 throws java.lang.Exception
Method testLength2 is testing length2

Throws:
java.lang.Exception
See Also:
Geom.length2(int, int, int, int)

testLength

public void testLength()
                throws java.lang.Exception
Method testLength is testing length

Throws:
java.lang.Exception
See Also:
Geom.length(int, int, int, int)

testPointToAngle

public void testPointToAngle()
                      throws java.lang.Exception
Method testPointToAngle is testing pointToAngle

Throws:
java.lang.Exception
See Also:
Geom.pointToAngle(java.awt.Rectangle, java.awt.Point)

testAngleToPoint

public void testAngleToPoint()
                      throws java.lang.Exception
Method testAngleToPoint is testing angleToPoint

Throws:
java.lang.Exception
See Also:
Geom.angleToPoint(java.awt.Rectangle, double)

testPolarToPoint

public void testPolarToPoint()
                      throws java.lang.Exception
Method testPolarToPoint is testing polarToPoint

Throws:
java.lang.Exception
See Also:
Geom.polarToPoint(double, double, double)

testOvalAngleToPoint

public void testOvalAngleToPoint()
                          throws java.lang.Exception
Method testOvalAngleToPoint is testing ovalAngleToPoint

Throws:
java.lang.Exception
See Also:
Geom.ovalAngleToPoint(java.awt.Rectangle, double)

testIntersect

public void testIntersect()
                   throws java.lang.Exception
Method testIntersect is testing intersect

Throws:
java.lang.Exception
See Also:
Geom.intersect(int, int, int, int, int, int, int, int)

testDistanceFromLine

public void testDistanceFromLine()
                          throws java.lang.Exception
Method testDistanceFromLine is testing distanceFromLine

Throws:
java.lang.Exception
See Also:
Geom.distanceFromLine(int, int, int, int, int, int)

testDistanceFromLine2D

public void testDistanceFromLine2D()
                            throws java.lang.Exception
Method testDistanceFromLine2D is testing distanceFromLine2D

Throws:
java.lang.Exception
See Also:
Geom.distanceFromLine2D(int, int, int, int, int, 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