|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase edu.umd.cfar.lamp.viper.geometry.GeometryTest
Testsuite for the geometry package.
Constructor Summary | |
GeometryTest(java.lang.String name)
Constructs a new test of the geometry package. |
Method Summary | |
static boolean |
closeEnough(double alpha,
double beta)
Tests to see if two doubles are within some epsilon. |
protected void |
setUp()
|
static junit.framework.Test |
suite()
Creates the test suite |
void |
testBBoxEquals()
Tests the BoundingBox's equality methods. |
void |
testCircles()
Exercises the Circle type. |
void |
testCPolyAdd()
Tests the ConvexPolygon's add methods. |
void |
testCPolyArea()
Tests the ConvexPolygon's area methods. |
void |
testCPolyChildren()
Test intersection of bbox and obox |
void |
testCPolyClip()
Tests the ConvexPolygon's clipping methods. |
void |
testCPolyEquals()
Tests the ConvexPolygon's equality methods. |
void |
testCPolyIntersection()
Tests the ConvexPolygon's intersection methods. |
void |
testCPolyIntersects()
Tests the ConvexPolygon's intersection tests and computations. |
void |
testCPolySubtract()
Tests the ConvexPolygon's subtraction methods. |
void |
testCPolyUnion()
Tests the ConvexPolygon's union methods. |
void |
testGetNearIntersection()
Tests the getNearIntersection methods. |
void |
testOBoxEquals()
Tests the OrientedBox's equality methods. |
void |
testOBoxNegativeDistanceError()
Tests the for a specific error that used to occur when computing the area shared by multiple boxes. |
void |
testPolyArea()
Tests polygon area measurement. |
void |
testRationalEquals()
Tests the Rational data type's equality methods. |
void |
testRationalInequality()
Tests the Rational data type's inequality methods. |
void |
testRationalInfinity()
Tests the Rational data type's ability to handle values outside the finite. |
void |
testRationalMath()
Tests the Rational static math methods (plus, multiply, etc.). |
void |
testRationalOverflow()
Tests the Rational data type's ability to handle numbers larger than 32 or 64 bits. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 GeometryTest(java.lang.String name)
name
- the name of the testMethod Detail |
protected void setUp()
public static junit.framework.Test suite()
public void testCircles()
public void testRationalEquals()
public void testRationalInequality()
public void testRationalInfinity()
public void testRationalMath()
public void testRationalOverflow()
public void testCPolyEquals()
public void testPolyArea()
public static boolean closeEnough(double alpha, double beta)
alpha
- beta
-
public void testCPolyArea()
public void testCPolyIntersects()
public void testCPolySubtract()
public void testCPolyClip()
public void testCPolyIntersection()
public void testGetNearIntersection()
public void testBBoxEquals()
public void testCPolyChildren()
public void testOBoxEquals()
public void testCPolyUnion()
public void testCPolyAdd()
public void testOBoxNegativeDistanceError()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |