|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--com.rolemodelsoft.drawlet.basics.TC_AbstractFigure
| Field Summary | |
protected AbstractFigure |
figure
|
protected RelatedLocationRevealer |
locationRevealer
|
protected PropertyChangeRevealer |
propertyRevealer
|
| Fields inherited from class junit.framework.TestCase |
result |
| Constructor Summary | |
TC_AbstractFigure(java.lang.String name)
BasicStringRendererTest constructor comment. |
|
| Method Summary | |
protected void |
setUp()
Sets up the fixture, for example, open a network connection. |
void |
testAddPropertyChangeListener()
Test to make sure PropertyChangeListeners are being added correctly. |
void |
testAddRelatedLocationListener()
Test to make sure RelatedLocationListeners are being added correctly. |
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 |
testDisconnect()
Test to make sure that (a) the figure is firing the disconnect event, and (b) that it then doesn't fire anything else ( at least until someone else registers). |
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 |
testGetHandles()
Test to make sure the handles are 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 |
testGetStyle()
Test to make sure the style returned is correct. |
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 |
testIsObsolete()
Test to make sure the isObsolete() 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 |
testLocatorAt()
Test to make sure locatorAt returns the proper value. |
void |
testMoveIntInt()
Test to make sure move( int, int ) works correctly. |
void |
testMoveLocator()
Test to make sure move( Locator ) works correctly. |
void |
testRelatedLocationListeners()
Test to make sure relatedLocationListeners works correctly. |
void |
testRemovePropertyChangeListener()
Test to make sure PropertyChangeListeners are being removed correctly. |
void |
testRemoveRelatedLocationListener()
Test to make sure RelatedLocationListeners are being removed 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 |
testSetStyle()
Test to make sure the setStyle method is working properly. |
void |
testTranslate()
Test to make sure translate works correctly. |
protected void |
translateByExpecting(int startX,
int startY,
int expectedX,
int expectedY)
Test to make sure translate works correctly. |
| 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 |
protected AbstractFigure figure
protected PropertyChangeRevealer propertyRevealer
protected RelatedLocationRevealer locationRevealer
| Constructor Detail |
public TC_AbstractFigure(java.lang.String name)
name - java.lang.String| Method Detail |
protected void setUp()
public void testAddPropertyChangeListener()
public void testAddRelatedLocationListener()
public void testContainsFigure()
public void testContainsIntInt()
public void testContainsRectangle()
public void testDisconnect()
public void testEditTool()
public void testGetBottom()
public void testGetHandles()
public void testGetHeight()
public void testGetLeft()
public void testGetLocator()
public void testGetRight()
public void testGetSize()
public void testGetStyle()
public void testGetTop()
public void testGetWidth()
public void testIntersectsFigure()
public void testIntersectsRectangle()
public void testIsObsolete()
public void testIsWithinFigure()
public void testIsWithinRectangle()
public void testLocatorAt()
public void testMoveIntInt()
public void testMoveLocator()
public void testRelatedLocationListeners()
public void testRemovePropertyChangeListener()
public void testRemoveRelatedLocationListener()
public void testRequestConnection()
public void testSetBounds()
public void testSetSizeDimension()
public void testSetSizeIntInt()
public void testSetStyle()
public void testTranslate()
protected void translateByExpecting(int startX,
int startY,
int expectedX,
int expectedY)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||