com.rolemodelsoft.drawlet.text
Class TC_TextLabel

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.rolemodelsoft.drawlet.basics.TC_AbstractFigure
                    |
                    +--com.rolemodelsoft.drawlet.text.TC_TextLabel

public class TC_TextLabel
extends TC_AbstractFigure


Field Summary
protected  TextLabel label
           
protected  BasicStringRenderer renderer
           
 
Fields inherited from class com.rolemodelsoft.drawlet.basics.TC_AbstractFigure
figure, locationRevealer, propertyRevealer
 
Fields inherited from class junit.framework.TestCase
result
 
Constructor Summary
TC_TextLabel(java.lang.String name)
          TextLabelTest constructor comment.
 
Method Summary
 void setUp()
          Sets up the fixture, for example, open a network connection.
 void testContainsFigure()
          Test to make sure the contains( Figure ) method is functioning properly.
 void testContainsIntInt()
          Test to make sure the contains( int, int ) method is functioning properly.
 void testContainsRectangle()
          Test to make sure the contains( Rectangle ) method is functioning properly.
 void testEditTool()
          Test to make sure that the edit tool returned is null.
 void testGetBottom()
          Test to make sure the bottom is properly returned.
 void testGetHeight()
          Test to make sure the height of the figure is properly returned.
 void testGetLeft()
          Test to make sure the leftmost coordinate of the figure is properly returned.
 void testGetLocator()
          Test to make sure the locator is properly returned.
 void testGetRight()
          Test to make sure the rightmost coordinate of the figure is properly returned.
 void testGetSize()
          Test to make sure the size of the figure is properly returned.
 void testGetTop()
          Test to make sure the top is properly returned.
 void testGetWidth()
          Test to make sure the width of the figure is properly returned.
 void testIntersectsFigure()
          Test to make sure the intersects( Figure ) method is functioning properly.
 void testIntersectsRectangle()
          Test to make sure the intersects( Rectangle ) method is functioning properly.
 void testIsWithinFigure()
          Test to make sure the isWithin( Figure ) method is functioning properly.
 void testIsWithinRectangle()
          Test to make sure the isWithin( Rectangle ) method is functioning properly.
 void testMoveIntInt()
          Test to make sure move( int, int ) works correctly.
 void testRequestConnection()
          Test to make sure the locator is properly returned.
 void testSetBounds()
          Test to make sure the bounds are properly set.
 void testSetSizeDimension()
          Test to make sure the setSize( Dimension ) method is working properly.
 void testSetSizeIntInt()
          Test to make sure the setSize( int, int ) method is working properly.
 void testTranslate()
          Test to make sure translate works correctly.
 
Methods inherited from class com.rolemodelsoft.drawlet.basics.TC_AbstractFigure
testAddPropertyChangeListener, testAddRelatedLocationListener, testDisconnect, testGetHandles, testGetStyle, testIsObsolete, testLocatorAt, testMoveLocator, testRelatedLocationListeners, testRemovePropertyChangeListener, testRemoveRelatedLocationListener, testSetStyle, translateByExpecting
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, onAssertion, run, run, runBare, runTest, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

protected TextLabel label

renderer

protected BasicStringRenderer renderer
Constructor Detail

TC_TextLabel

public TC_TextLabel(java.lang.String name)
TextLabelTest constructor comment.
Parameters:
name - java.lang.String
Method Detail

setUp

public void setUp()
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.
Overrides:
setUp in class TC_AbstractFigure

testContainsFigure

public void testContainsFigure()
Test to make sure the contains( Figure ) method is functioning properly.
Overrides:
testContainsFigure in class TC_AbstractFigure

testContainsIntInt

public void testContainsIntInt()
Test to make sure the contains( int, int ) method is functioning properly.
Overrides:
testContainsIntInt in class TC_AbstractFigure

testContainsRectangle

public void testContainsRectangle()
Test to make sure the contains( Rectangle ) method is functioning properly.
Overrides:
testContainsRectangle in class TC_AbstractFigure

testEditTool

public void testEditTool()
Test to make sure that the edit tool returned is null. Subclasses should override if they return expect a different result.
Overrides:
testEditTool in class TC_AbstractFigure

testGetBottom

public void testGetBottom()
Test to make sure the bottom is properly returned.
Overrides:
testGetBottom in class TC_AbstractFigure

testGetHeight

public void testGetHeight()
Test to make sure the height of the figure is properly returned.
Overrides:
testGetHeight in class TC_AbstractFigure

testGetLeft

public void testGetLeft()
Test to make sure the leftmost coordinate of the figure is properly returned.
Overrides:
testGetLeft in class TC_AbstractFigure

testGetLocator

public void testGetLocator()
Test to make sure the locator is properly returned.
Overrides:
testGetLocator in class TC_AbstractFigure

testGetRight

public void testGetRight()
Test to make sure the rightmost coordinate of the figure is properly returned.
Overrides:
testGetRight in class TC_AbstractFigure

testGetSize

public void testGetSize()
Test to make sure the size of the figure is properly returned.
Overrides:
testGetSize in class TC_AbstractFigure

testGetTop

public void testGetTop()
Test to make sure the top is properly returned.
Overrides:
testGetTop in class TC_AbstractFigure

testGetWidth

public void testGetWidth()
Test to make sure the width of the figure is properly returned.
Overrides:
testGetWidth in class TC_AbstractFigure

testIntersectsFigure

public void testIntersectsFigure()
Test to make sure the intersects( Figure ) method is functioning properly.
Overrides:
testIntersectsFigure in class TC_AbstractFigure

testIntersectsRectangle

public void testIntersectsRectangle()
Test to make sure the intersects( Rectangle ) method is functioning properly.
Overrides:
testIntersectsRectangle in class TC_AbstractFigure

testIsWithinFigure

public void testIsWithinFigure()
Test to make sure the isWithin( Figure ) method is functioning properly.
Overrides:
testIsWithinFigure in class TC_AbstractFigure

testIsWithinRectangle

public void testIsWithinRectangle()
Test to make sure the isWithin( Rectangle ) method is functioning properly.
Overrides:
testIsWithinRectangle in class TC_AbstractFigure

testMoveIntInt

public void testMoveIntInt()
Test to make sure move( int, int ) works correctly.
Overrides:
testMoveIntInt in class TC_AbstractFigure

testRequestConnection

public void testRequestConnection()
Test to make sure the locator is properly returned.
Overrides:
testRequestConnection in class TC_AbstractFigure

testSetBounds

public void testSetBounds()
Test to make sure the bounds are properly set.
Overrides:
testSetBounds in class TC_AbstractFigure

testSetSizeDimension

public void testSetSizeDimension()
Test to make sure the setSize( Dimension ) method is working properly.
Overrides:
testSetSizeDimension in class TC_AbstractFigure

testSetSizeIntInt

public void testSetSizeIntInt()
Test to make sure the setSize( int, int ) method is working properly.
Overrides:
testSetSizeIntInt in class TC_AbstractFigure

testTranslate

public void testTranslate()
Test to make sure translate works correctly.
Overrides:
testTranslate in class TC_AbstractFigure