org.jhotdraw.test.contrib
Class TextAreaFigureTest

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

public class TextAreaFigureTest
extends junit.framework.TestCase

TestCase TextAreaFigureTest is generated by JUnitDoclet to hold the tests for TextAreaFigure.

See Also:
TextAreaFigure

Constructor Summary
TextAreaFigureTest(java.lang.String name)
          Constructor TextAreaFigureTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 TextAreaFigure createInstance()
          Factory method for instances of the class to be tested.
 void testAcceptsTyping()
          Method testAcceptsTyping is testing acceptsTyping
 void testBasicDisplayBox()
          Method testBasicDisplayBox is testing basicDisplayBox
 void testConnect()
          Method testConnect is testing connect
 void testCreateFont()
          Method testCreateFont is testing createFont
 void testDisconnect()
          Method testDisconnect is testing disconnect
 void testDisplayBox()
          Method testDisplayBox is testing displayBox
 void testDraw()
          Method testDraw is testing draw
 void testDrawBackground()
          Method testDrawBackground is testing drawBackground
 void testDrawFrame()
          Method testDrawFrame is testing drawFrame
 void testFigureChanged()
          Method testFigureChanged is testing figureChanged
 void testFigureInvalidated()
          Method testFigureInvalidated is testing figureInvalidated
 void testFigureRemoved()
          Method testFigureRemoved is testing figureRemoved
 void testFigureRequestRemove()
          Method testFigureRequestRemove is testing figureRequestRemove
 void testFigureRequestUpdate()
          Method testFigureRequestUpdate is testing figureRequestUpdate
 void testGetAttribute()
          Method testGetAttribute is testing getAttribute
 void testGetRepresentingFigure()
          Method testGetRepresentingFigure is testing getRepresentingFigure
 void testGetTextColor()
          Method testGetTextColor is testing getTextColor
 void testHandles()
          Method testHandles is testing handles
 void testIsEmpty()
          Method testIsEmpty is testing isEmpty
 void testIsTextDirty()
          Method testIsTextDirty is testing isTextDirty
 void testMoveBy()
          Method testMoveBy is testing moveBy
 void testOverlayColumns()
          Method testOverlayColumns is testing overlayColumns
 void testRead()
          Method testRead is testing read
 void testSetAttribute()
          Method testSetAttribute is testing setAttribute
 void testSetGetFont()
          Method testSetGetFont is testing setFont and getFont together by setting some value and verifying it by reading.
 void testSetGetText()
          Method testSetGetText is testing setText and getText together by setting some value and verifying it by reading.
 void testSetIsFontDirty()
          Method testSetIsFontDirty is testing setFontDirty and isFontDirty together by setting some value and verifying it by reading.
 void testSetIsReadOnly()
          Method testSetIsReadOnly is testing setReadOnly and isReadOnly together by setting some value and verifying it by reading.
 void testSetIsSizeDirty()
          Method testSetIsSizeDirty is testing setSizeDirty and isSizeDirty together by setting some value and verifying it by reading.
 void testSetNullFont()
          Test a null argument to setFont.
 void testTextDisplayBox()
          Method testTextDisplayBox is testing textDisplayBox
 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

TextAreaFigureTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testSetGetText

public void testSetGetText()
                    throws java.lang.Exception
Method testSetGetText is testing setText and getText together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
TextAreaFigure.setText(java.lang.String), TextAreaFigure.getText()

testTextDisplayBox

public void testTextDisplayBox()
                        throws java.lang.Exception
Method testTextDisplayBox is testing textDisplayBox

Throws:
java.lang.Exception
See Also:
TextAreaFigure.textDisplayBox()

testCreateFont

public void testCreateFont()
                    throws java.lang.Exception
Method testCreateFont is testing createFont

Throws:
java.lang.Exception
See Also:
TextAreaFigure.createFont()

testSetIsReadOnly

public void testSetIsReadOnly()
                       throws java.lang.Exception
Method testSetIsReadOnly is testing setReadOnly and isReadOnly together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
TextAreaFigure.setReadOnly(boolean), TextAreaFigure.isReadOnly()

testAcceptsTyping

public void testAcceptsTyping()
                       throws java.lang.Exception
Method testAcceptsTyping is testing acceptsTyping

Throws:
java.lang.Exception
See Also:
TextAreaFigure.acceptsTyping()

testIsTextDirty

public void testIsTextDirty()
                     throws java.lang.Exception
Method testIsTextDirty is testing isTextDirty

Throws:
java.lang.Exception
See Also:
TextAreaFigure.isTextDirty()

testSetIsSizeDirty

public void testSetIsSizeDirty()
                        throws java.lang.Exception
Method testSetIsSizeDirty is testing setSizeDirty and isSizeDirty together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
TextAreaFigure.setSizeDirty(boolean), TextAreaFigure.isSizeDirty()

testSetGetFont

public void testSetGetFont()
                    throws java.lang.Exception
Method testSetGetFont is testing setFont and getFont together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
TextAreaFigure.setFont(java.awt.Font), TextAreaFigure.getFont()

testSetNullFont

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

Throws:
java.lang.Exception
See Also:
TextAreaFigure.setFont(java.awt.Font)

testOverlayColumns

public void testOverlayColumns()
                        throws java.lang.Exception
Method testOverlayColumns is testing overlayColumns

Throws:
java.lang.Exception
See Also:
TextAreaFigure.overlayColumns()

testBasicDisplayBox

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

Throws:
java.lang.Exception
See Also:
TextAreaFigure.basicDisplayBox(java.awt.Point, java.awt.Point)

testHandles

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

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

testDisplayBox

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

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

testMoveBy

public void testMoveBy()
                throws java.lang.Exception
Method testMoveBy is testing moveBy

Throws:
java.lang.Exception
See Also:
TextAreaFigure.moveBy(int, int)

testDrawBackground

public void testDrawBackground()
                        throws java.lang.Exception
Method testDrawBackground is testing drawBackground

Throws:
java.lang.Exception
See Also:
TextAreaFigure.drawBackground(java.awt.Graphics)

testDraw

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

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

testDrawFrame

public void testDrawFrame()
                   throws java.lang.Exception
Method testDrawFrame is testing drawFrame

Throws:
java.lang.Exception
See Also:
TextAreaFigure.drawFrame(java.awt.Graphics)

testGetAttribute

public void testGetAttribute()
                      throws java.lang.Exception
Method testGetAttribute is testing getAttribute

Throws:
java.lang.Exception
See Also:
TextAreaFigure.getAttribute(java.lang.String)

testSetAttribute

public void testSetAttribute()
                      throws java.lang.Exception
Method testSetAttribute is testing setAttribute

Throws:
java.lang.Exception
See Also:
TextAreaFigure.setAttribute(java.lang.String, java.lang.Object)

testWrite

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

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

testRead

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

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

testConnect

public void testConnect()
                 throws java.lang.Exception
Method testConnect is testing connect

Throws:
java.lang.Exception
See Also:
TextAreaFigure.connect(org.jhotdraw.framework.Figure)

testDisconnect

public void testDisconnect()
                    throws java.lang.Exception
Method testDisconnect is testing disconnect

Throws:
java.lang.Exception
See Also:
TextAreaFigure.disconnect(org.jhotdraw.framework.Figure)

testFigureInvalidated

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

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

testFigureChanged

public void testFigureChanged()
                       throws java.lang.Exception
Method testFigureChanged is testing figureChanged

Throws:
java.lang.Exception
See Also:
TextAreaFigure.figureChanged(org.jhotdraw.framework.FigureChangeEvent)

testFigureRemoved

public void testFigureRemoved()
                       throws java.lang.Exception
Method testFigureRemoved is testing figureRemoved

Throws:
java.lang.Exception
See Also:
TextAreaFigure.figureRemoved(org.jhotdraw.framework.FigureChangeEvent)

testFigureRequestRemove

public void testFigureRequestRemove()
                             throws java.lang.Exception
Method testFigureRequestRemove is testing figureRequestRemove

Throws:
java.lang.Exception
See Also:
TextAreaFigure.figureRequestRemove(org.jhotdraw.framework.FigureChangeEvent)

testFigureRequestUpdate

public void testFigureRequestUpdate()
                             throws java.lang.Exception
Method testFigureRequestUpdate is testing figureRequestUpdate

Throws:
java.lang.Exception
See Also:
TextAreaFigure.figureRequestUpdate(org.jhotdraw.framework.FigureChangeEvent)

testGetTextColor

public void testGetTextColor()
                      throws java.lang.Exception
Method testGetTextColor is testing getTextColor

Throws:
java.lang.Exception
See Also:
TextAreaFigure.getTextColor()

testIsEmpty

public void testIsEmpty()
                 throws java.lang.Exception
Method testIsEmpty is testing isEmpty

Throws:
java.lang.Exception
See Also:
TextAreaFigure.isEmpty()

testSetIsFontDirty

public void testSetIsFontDirty()
                        throws java.lang.Exception
Method testSetIsFontDirty is testing setFontDirty and isFontDirty together by setting some value and verifying it by reading.

Throws:
java.lang.Exception
See Also:
TextAreaFigure.setFontDirty(boolean), TextAreaFigure.isFontDirty()

testGetRepresentingFigure

public void testGetRepresentingFigure()
                               throws java.lang.Exception
Method testGetRepresentingFigure is testing getRepresentingFigure

Throws:
java.lang.Exception
See Also:
TextAreaFigure.getRepresentingFigure()

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