com.rolemodelsoft.drawlet.shapes.lines
Class TC_AdornedLine

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.rolemodelsoft.drawlet.basics.TC_AbstractFigure
                    |
                    +--com.rolemodelsoft.drawlet.shapes.lines.TC_AdornedLine

public class TC_AdornedLine
extends TC_AbstractFigure


Fields inherited from class com.rolemodelsoft.drawlet.basics.TC_AbstractFigure
figure, locationRevealer, propertyRevealer
 
Fields inherited from class junit.framework.TestCase
result
 
Constructor Summary
TC_AdornedLine(java.lang.String name)
          AdornedLineTest constructor comment.
 
Method Summary
 void setUp()
          Sets up the fixture, for example, open a network connection.
 void testAddAdornment()
          Test to make sure ardornments are being added properly.
 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 testGetBottom()
          Test to make sure the bottom is properly returned.
 void testGetBounds()
          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 testRelatedLocationListeners()
          Test to make sure relatedLocationListeners works correctly.
 void testRemoveAdornment()
          Test to make sure ardornments are being removed properly.
 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, testEditTool, testGetHandles, testGetStyle, testIsObsolete, testLocatorAt, testMoveIntInt, testMoveLocator, 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
 

Constructor Detail

TC_AdornedLine

public TC_AdornedLine(java.lang.String name)
AdornedLineTest 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

testAddAdornment

public void testAddAdornment()
Test to make sure ardornments are being added properly.

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

testGetBottom

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

testGetBounds

public void testGetBounds()
Test to make sure the bottom is properly returned.

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

testRelatedLocationListeners

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

testRemoveAdornment

public void testRemoveAdornment()
Test to make sure ardornments are being removed properly.

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