org.jhotdraw.test.contrib
Class TriangleFigureTest

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

public class TriangleFigureTest
extends junit.framework.TestCase

TestCase TriangleFigureTest is generated by JUnitDoclet to hold the tests for TriangleFigure.

See Also:
TriangleFigure

Constructor Summary
TriangleFigureTest(java.lang.String name)
          Constructor TriangleFigureTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 TriangleFigure createInstance()
          Factory method for instances of the class to be tested.
 void testCenter()
          Method testCenter is testing center
 void testChop()
          Method testChop is testing chop
 void testClone()
          Method testClone is testing clone
 void testConnectionInsets()
          Method testConnectionInsets is testing connectionInsets
 void testContainsPoint()
          Method testContainsPoint is testing containsPoint
 void testDraw()
          Method testDraw is testing draw
 void testGetPolygon()
          Method testGetPolygon is testing getPolygon
 void testGetRotationAngle()
          Method testGetRotationAngle is testing getRotationAngle
 void testHandles()
          Method testHandles is testing handles
 void testRead()
          Method testRead is testing read
 void testRotate()
          Method testRotate is testing rotate
 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

TriangleFigureTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testHandles

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

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

testRotate

public void testRotate()
                throws java.lang.Exception
Method testRotate is testing rotate

Throws:
java.lang.Exception
See Also:
TriangleFigure.rotate(double)

testGetPolygon

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

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

testDraw

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

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

testConnectionInsets

public void testConnectionInsets()
                          throws java.lang.Exception
Method testConnectionInsets is testing connectionInsets

Throws:
java.lang.Exception
See Also:
TriangleFigure.connectionInsets()

testContainsPoint

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

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

testCenter

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

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

testChop

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

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

testClone

public void testClone()
               throws java.lang.Exception
Method testClone is testing clone

Throws:
java.lang.Exception
See Also:
TriangleFigure.clone()

testGetRotationAngle

public void testGetRotationAngle()
                          throws java.lang.Exception
Method testGetRotationAngle is testing getRotationAngle

Throws:
java.lang.Exception
See Also:
TriangleFigure.getRotationAngle()

testWrite

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

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

testRead

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

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

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