|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.seisw.util.geom.PolyDefaultTest
PolyDefaultTest is a set of unit tests using JUnit for the
class PolyDefalt.
| Constructor Summary | |
PolyDefaultTest(java.lang.String name)
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Provides the ability to run the tests contained here in. |
protected void |
setUp()
Construct and initialize any objects that will be used in multiple tests. |
static junit.framework.TestSuite |
suite()
Return the suite of tests |
protected void |
tearDown()
|
void |
testAreaNonConvex()
Test the getting the area of a non-convex polygon |
void |
testAreaSquare()
Test the getting the area of a square |
void |
testAreaTriangle()
Test the getting the area of a triangle |
void |
testAreaWithHole()
Test the getting the area of a polygon with a hole |
void |
testEqualsBadOrder()
Test the equality operator when same points but not it same order |
void |
testEqualsDifferentNumPoints()
Test the equality operator when polys with different number of points |
void |
testEqualsDifferentOrder()
Test the equality operator when same but different order |
void |
testEqualsDifferentValue()
Test the equality operator when smae number of points but one point value different |
void |
testEqualsEmpty()
Test the equality operator when empty |
void |
testEqualsSame()
Test the equality operator when same |
void |
testSelfIntersecting()
Test the getting the area of a self-intersecting polygon |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PolyDefaultTest(java.lang.String name)
name - Name of test case| Method Detail |
public static void main(java.lang.String[] args)
args - Command line arguements.public static junit.framework.TestSuite suite()
protected void setUp()
protected void tearDown()
public void testEqualsEmpty()
public void testEqualsSame()
public void testEqualsDifferentOrder()
public void testEqualsBadOrder()
public void testEqualsDifferentNumPoints()
public void testEqualsDifferentValue()
public void testAreaTriangle()
public void testAreaSquare()
public void testAreaNonConvex()
public void testAreaWithHole()
public void testSelfIntersecting()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||