org.jhotdraw.test.util
Class BoundsTest

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

public class BoundsTest
extends junit.framework.TestCase

TestCase BoundsTest is generated by JUnitDoclet to hold the tests for Bounds.

See Also:
Bounds

Constructor Summary
BoundsTest(java.lang.String name)
          Constructor BoundsTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 Bounds createInstance()
          Factory method for instances of the class to be tested.
 void testAsRectangle2D()
          Method testAsRectangle2D is testing asRectangle2D
 void testCompletelyContainsLine()
          Method testCompletelyContainsLine is testing completelyContainsLine
 void testCropLine()
          Method testCropLine is testing cropLine
 void testEquals()
          Method testEquals is testing equals
 void testExpandToRatio()
          Method testExpandToRatio is testing expandToRatio
 void testGetEast()
          Method testGetEast is testing getEast
 void testGetGreaterX()
          Method testGetGreaterX is testing getGreaterX
 void testGetGreaterY()
          Method testGetGreaterY is testing getGreaterY
 void testGetHeight()
          Method testGetHeight is testing getHeight
 void testGetLesserX()
          Method testGetLesserX is testing getLesserX
 void testGetLesserY()
          Method testGetLesserY is testing getLesserY
 void testGetNorth()
          Method testGetNorth is testing getNorth
 void testGetSouth()
          Method testGetSouth is testing getSouth
 void testGetWest()
          Method testGetWest is testing getWest
 void testGetWidth()
          Method testGetWidth is testing getWidth
 void testHashCode()
          Method testHashCode is testing hashCode
 void testIncludeBounds()
          Method testIncludeBounds is testing includeBounds
 void testIncludeLine()
          Method testIncludeLine is testing includeLine
 void testIncludePoint()
          Method testIncludePoint is testing includePoint
 void testIncludeRectangle2D()
          Method testIncludeRectangle2D is testing includeRectangle2D
 void testIncludeXCoordinate()
          Method testIncludeXCoordinate is testing includeXCoordinate
 void testIncludeYCoordinate()
          Method testIncludeYCoordinate is testing includeYCoordinate
 void testIntersect()
          Method testIntersect is testing intersect
 void testIntersectsBounds()
          Method testIntersectsBounds is testing intersectsBounds
 void testIntersectsLine()
          Method testIntersectsLine is testing intersectsLine
 void testIntersectsPoint()
          Method testIntersectsPoint is testing intersectsPoint
 void testIsCompletelyInside()
          Method testIsCompletelyInside is testing isCompletelyInside
 void testOffset()
          Method testOffset is testing offset
 void testSetGetCenter()
          Method testSetGetCenter is testing setCenter and getCenter together by setting some value and verifying it by reading.
 void testSetNullCenter()
          Test a null argument to setCenter.
 void testShiftBy()
          Method testShiftBy is testing shiftBy
 void testToString()
          Method testToString is testing toString
 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 testZoomBy()
          Method testZoomBy is testing zoomBy
 
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

BoundsTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testGetLesserX

public void testGetLesserX()
                    throws java.lang.Exception
Method testGetLesserX is testing getLesserX

Throws:
java.lang.Exception
See Also:
Bounds.getLesserX()

testGetGreaterX

public void testGetGreaterX()
                     throws java.lang.Exception
Method testGetGreaterX is testing getGreaterX

Throws:
java.lang.Exception
See Also:
Bounds.getGreaterX()

testGetLesserY

public void testGetLesserY()
                    throws java.lang.Exception
Method testGetLesserY is testing getLesserY

Throws:
java.lang.Exception
See Also:
Bounds.getLesserY()

testGetGreaterY

public void testGetGreaterY()
                     throws java.lang.Exception
Method testGetGreaterY is testing getGreaterY

Throws:
java.lang.Exception
See Also:
Bounds.getGreaterY()

testGetWest

public void testGetWest()
                 throws java.lang.Exception
Method testGetWest is testing getWest

Throws:
java.lang.Exception
See Also:
Bounds.getWest()

testGetEast

public void testGetEast()
                 throws java.lang.Exception
Method testGetEast is testing getEast

Throws:
java.lang.Exception
See Also:
Bounds.getEast()

testGetSouth

public void testGetSouth()
                  throws java.lang.Exception
Method testGetSouth is testing getSouth

Throws:
java.lang.Exception
See Also:
Bounds.getSouth()

testGetNorth

public void testGetNorth()
                  throws java.lang.Exception
Method testGetNorth is testing getNorth

Throws:
java.lang.Exception
See Also:
Bounds.getNorth()

testGetWidth

public void testGetWidth()
                  throws java.lang.Exception
Method testGetWidth is testing getWidth

Throws:
java.lang.Exception
See Also:
Bounds.getWidth()

testGetHeight

public void testGetHeight()
                   throws java.lang.Exception
Method testGetHeight is testing getHeight

Throws:
java.lang.Exception
See Also:
Bounds.getHeight()

testAsRectangle2D

public void testAsRectangle2D()
                       throws java.lang.Exception
Method testAsRectangle2D is testing asRectangle2D

Throws:
java.lang.Exception
See Also:
Bounds.asRectangle2D()

testSetGetCenter

public void testSetGetCenter()
                      throws java.lang.Exception
Method testSetGetCenter is testing setCenter and getCenter together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
Bounds.setCenter(java.awt.geom.Point2D), Bounds.getCenter()

testSetNullCenter

public void testSetNullCenter()
                       throws java.lang.Exception
Test a null argument to setCenter. Expect an IllegalArgumentException

Throws:
java.lang.Exception
See Also:
Bounds.setCenter(java.awt.geom.Point2D)

testZoomBy

public void testZoomBy()
                throws java.lang.Exception
Method testZoomBy is testing zoomBy

Throws:
java.lang.Exception
See Also:
Bounds.zoomBy(double)

testShiftBy

public void testShiftBy()
                 throws java.lang.Exception
Method testShiftBy is testing shiftBy

Throws:
java.lang.Exception
See Also:
Bounds.shiftBy(int, int)

testOffset

public void testOffset()
                throws java.lang.Exception
Method testOffset is testing offset

Throws:
java.lang.Exception
See Also:
Bounds.offset(double, double)

testExpandToRatio

public void testExpandToRatio()
                       throws java.lang.Exception
Method testExpandToRatio is testing expandToRatio

Throws:
java.lang.Exception
See Also:
Bounds.expandToRatio(double)

testIncludeXCoordinate

public void testIncludeXCoordinate()
                            throws java.lang.Exception
Method testIncludeXCoordinate is testing includeXCoordinate

Throws:
java.lang.Exception
See Also:
Bounds.includeXCoordinate(double)

testIncludeYCoordinate

public void testIncludeYCoordinate()
                            throws java.lang.Exception
Method testIncludeYCoordinate is testing includeYCoordinate

Throws:
java.lang.Exception
See Also:
Bounds.includeYCoordinate(double)

testIncludePoint

public void testIncludePoint()
                      throws java.lang.Exception
Method testIncludePoint is testing includePoint

Throws:
java.lang.Exception
See Also:
Bounds.includePoint(double, double)

testIncludeLine

public void testIncludeLine()
                     throws java.lang.Exception
Method testIncludeLine is testing includeLine

Throws:
java.lang.Exception
See Also:
Bounds.includeLine(double, double, double, double)

testIncludeBounds

public void testIncludeBounds()
                       throws java.lang.Exception
Method testIncludeBounds is testing includeBounds

Throws:
java.lang.Exception
See Also:
Bounds.includeBounds(org.jhotdraw.util.Bounds)

testIncludeRectangle2D

public void testIncludeRectangle2D()
                            throws java.lang.Exception
Method testIncludeRectangle2D is testing includeRectangle2D

Throws:
java.lang.Exception
See Also:
Bounds.includeRectangle2D(java.awt.geom.Rectangle2D)

testIntersect

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

Throws:
java.lang.Exception
See Also:
Bounds.intersect(org.jhotdraw.util.Bounds)

testIntersectsPoint

public void testIntersectsPoint()
                         throws java.lang.Exception
Method testIntersectsPoint is testing intersectsPoint

Throws:
java.lang.Exception
See Also:
Bounds.intersectsPoint(double, double)

testIntersectsLine

public void testIntersectsLine()
                        throws java.lang.Exception
Method testIntersectsLine is testing intersectsLine

Throws:
java.lang.Exception
See Also:
Bounds.intersectsLine(double, double, double, double)

testIntersectsBounds

public void testIntersectsBounds()
                          throws java.lang.Exception
Method testIntersectsBounds is testing intersectsBounds

Throws:
java.lang.Exception
See Also:
Bounds.intersectsBounds(org.jhotdraw.util.Bounds)

testCompletelyContainsLine

public void testCompletelyContainsLine()
                                throws java.lang.Exception
Method testCompletelyContainsLine is testing completelyContainsLine

Throws:
java.lang.Exception
See Also:
Bounds.completelyContainsLine(double, double, double, double)

testIsCompletelyInside

public void testIsCompletelyInside()
                            throws java.lang.Exception
Method testIsCompletelyInside is testing isCompletelyInside

Throws:
java.lang.Exception
See Also:
Bounds.isCompletelyInside(org.jhotdraw.util.Bounds)

testCropLine

public void testCropLine()
                  throws java.lang.Exception
Method testCropLine is testing cropLine

Throws:
java.lang.Exception
See Also:
Bounds.cropLine(double, double, double, double)

testEquals

public void testEquals()
                throws java.lang.Exception
Method testEquals is testing equals

Throws:
java.lang.Exception
See Also:
Bounds.equals(java.lang.Object)

testHashCode

public void testHashCode()
                  throws java.lang.Exception
Method testHashCode is testing hashCode

Throws:
java.lang.Exception
See Also:
Bounds.hashCode()

testToString

public void testToString()
                  throws java.lang.Exception
Method testToString is testing toString

Throws:
java.lang.Exception
See Also:
Bounds.toString()

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