org.jhotdraw.test.figures
Class TextFigureTest

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

public class TextFigureTest
extends junit.framework.TestCase

TestCase TextFigureTest is generated by JUnitDoclet to hold the tests for TextFigure.

See Also:
TextFigure

Constructor Summary
TextFigureTest(java.lang.String name)
          Constructor TextFigureTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 TextFigure 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 testChanged()
          Method testChanged is testing changed
 void testConnect()
          Method testConnect is testing connect
 void testCreateCurrentFont()
          Method testCreateCurrentFont is testing createCurrentFont
 void testDisconnect()
          Method testDisconnect is testing disconnect
 void testDisplayBox()
          Method testDisplayBox is testing displayBox
 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 testGetTextHolder()
          Method testGetTextHolder is testing getTextHolder
 void testHandles()
          Method testHandles is testing handles
 void testMoveBy()
          Method testMoveBy is testing moveBy
 void testOverlayColumns()
          Method testOverlayColumns is testing overlayColumns
 void testRead()
          Method testRead is testing read
 void testReadOnly()
          Method testReadOnly is testing readOnly
 void testRelease()
          Method testRelease is testing release
 void testSetAttribute()
          Method testSetAttribute is testing setAttribute
 void testSetCurrentFontName()
          Method testSetCurrentFontName is testing setCurrentFontName
 void testSetCurrentFontSize()
          Method testSetCurrentFontSize is testing setCurrentFontSize
 void testSetCurrentFontStyle()
          Method testSetCurrentFontStyle is testing setCurrentFontStyle
 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 testSetReadOnly()
          Method testSetReadOnly is testing setReadOnly
 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

TextFigureTest

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

Method Detail

createInstance

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

Throws:
java.lang.Exception

testMoveBy

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

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

testBasicDisplayBox

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

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

testDisplayBox

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

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

testTextDisplayBox

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

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

testReadOnly

public void testReadOnly()
                  throws java.lang.Exception
Method testReadOnly is testing readOnly

Throws:
java.lang.Exception
See Also:
TextFigure.readOnly()

testSetReadOnly

public void testSetReadOnly()
                     throws java.lang.Exception
Method testSetReadOnly is testing setReadOnly

Throws:
java.lang.Exception
See Also:
TextFigure.setReadOnly(boolean)

testGetRepresentingFigure

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

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

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:
TextFigure.setFont(java.awt.Font), TextFigure.getFont()

testChanged

public void testChanged()
                 throws java.lang.Exception
Method testChanged is testing changed

Throws:
java.lang.Exception
See Also:
TextFigure.changed()

testGetAttribute

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

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

testSetAttribute

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

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

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:
TextFigure.setText(java.lang.String), TextFigure.getText()

testAcceptsTyping

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

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

testDrawBackground

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

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

testDrawFrame

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

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

testOverlayColumns

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

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

testHandles

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

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

testWrite

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

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

testRead

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

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

testConnect

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

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

testFigureChanged

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

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

testFigureRemoved

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

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

testFigureRequestRemove

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

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

testFigureInvalidated

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

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

testFigureRequestUpdate

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

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

testRelease

public void testRelease()
                 throws java.lang.Exception
Method testRelease is testing release

Throws:
java.lang.Exception
See Also:
TextFigure.release()

testDisconnect

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

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

testGetTextHolder

public void testGetTextHolder()
                       throws java.lang.Exception
Method testGetTextHolder is testing getTextHolder

Throws:
java.lang.Exception
See Also:
TextFigure.getTextHolder()

testCreateCurrentFont

public void testCreateCurrentFont()
                           throws java.lang.Exception
Method testCreateCurrentFont is testing createCurrentFont

Throws:
java.lang.Exception
See Also:
TextFigure.createCurrentFont()

testSetCurrentFontName

public void testSetCurrentFontName()
                            throws java.lang.Exception
Method testSetCurrentFontName is testing setCurrentFontName

Throws:
java.lang.Exception
See Also:
TextFigure.setCurrentFontName(java.lang.String)

testSetCurrentFontSize

public void testSetCurrentFontSize()
                            throws java.lang.Exception
Method testSetCurrentFontSize is testing setCurrentFontSize

Throws:
java.lang.Exception
See Also:
TextFigure.setCurrentFontSize(int)

testSetCurrentFontStyle

public void testSetCurrentFontStyle()
                             throws java.lang.Exception
Method testSetCurrentFontStyle is testing setCurrentFontStyle

Throws:
java.lang.Exception
See Also:
TextFigure.setCurrentFontStyle(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