com.rolemodelsoft.drawlet.util
Class TC_SegmentIntersection
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--com.rolemodelsoft.drawlet.util.TC_SegmentIntersection
- public class TC_SegmentIntersection
- extends junit.framework.TestCase
|
Field Summary |
protected static boolean |
run
|
| Fields inherited from class junit.framework.TestCase |
result |
|
Constructor Summary |
TC_SegmentIntersection(java.lang.String name)
BasicStringRendererTest constructor comment. |
| 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 |
run
protected static boolean run
TC_SegmentIntersection
public TC_SegmentIntersection(java.lang.String name)
- BasicStringRendererTest constructor comment.
- Parameters:
name - java.lang.String
setUp
protected 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 junit.framework.TestCase
testCollinearIntersection
public void testCollinearIntersection()
testIntersectsLine1
public void testIntersectsLine1()
testIntersectsLine2
public void testIntersectsLine2()
testIntersectsLine3
public void testIntersectsLine3()
testIntersectsLine4
public void testIntersectsLine4()
testIntersectsLine5
public void testIntersectsLine5()
testIntersectsLine6
public void testIntersectsLine6()
testIntersectsLine7
public void testIntersectsLine7()
testNoIntersectsLine1
public void testNoIntersectsLine1()
testNoIntersectsLine2
public void testNoIntersectsLine2()
testNoIntersectsLine3
public void testNoIntersectsLine3()
visualize
protected static void visualize(int[] Line,
int[][] TestLine,
java.lang.String title)
- Paint the polygon and rectangles to see what we are trying to test... visually verifying
This method is basically used to see why the unit tests may be failing.
To run them modify the run field to equal true.