org.jhotdraw.test.figures
Class BorderDecoratorTest

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

public class BorderDecoratorTest
extends junit.framework.TestCase

TestCase BorderDecoratorTest is generated by JUnitDoclet to hold the tests for BorderDecorator.

See Also:
BorderDecorator

Constructor Summary
BorderDecoratorTest(java.lang.String name)
          Constructor BorderDecoratorTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 BorderDecorator createInstance()
          Factory method for instances of the class to be tested.
 void setNullBorderOffset()
          Test a null argument to setBorderOffset.
 void testConnectionInsets()
          Method testConnectionInsets is testing connectionInsets
 void testDisplayBox()
          Method testDisplayBox is testing displayBox
 void testDraw()
          Method testDraw is testing draw
 void testFigureInvalidated()
          Method testFigureInvalidated is testing figureInvalidated
 void testSetGetBorderOffset()
          Method testSetGetBorderOffset is testing setBorderOffset and getBorderOffset together by setting some value and verifying it by reading.
 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

BorderDecoratorTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testSetGetBorderOffset

public void testSetGetBorderOffset()
                            throws java.lang.Exception
Method testSetGetBorderOffset is testing setBorderOffset and getBorderOffset together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
BorderDecorator.setBorderOffset(java.awt.Point), BorderDecorator.getBorderOffset()

setNullBorderOffset

public void setNullBorderOffset()
                         throws java.lang.Exception
Test a null argument to setBorderOffset. Expect an Point(0, 0) to come back

Throws:
java.lang.Exception
See Also:
BorderDecorator.setBorderOffset(java.awt.Point)

testDraw

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

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

testDisplayBox

public void testDisplayBox()
                    throws java.lang.Exception
Method testDisplayBox is testing displayBox

Throws:
java.lang.Exception
See Also:
BorderDecorator.displayBox()

testFigureInvalidated

public void testFigureInvalidated()
                           throws java.lang.Exception
Method testFigureInvalidated is testing figureInvalidated

Throws:
java.lang.Exception
See Also:
BorderDecorator.figureInvalidated(org.jhotdraw.framework.FigureChangeEvent)

testConnectionInsets

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

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

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