testing.physicsEngine
Class PolygonCircleIntersectorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by testing.physicsEngine.PolygonCircleIntersectorTest
All Implemented Interfaces:
junit.framework.Test

public class PolygonCircleIntersectorTest
extends junit.framework.TestCase

Tests the intersection code for Polygons and Circles are implemented correctly.

Author:
Sami Boghos

Constructor Summary
PolygonCircleIntersectorTest()
           
 
Method Summary
 void testOneIntersectionPoint()
          Test one intersection point
 void testTangentIntersection()
          Test a tangent intersection
 void testTwoIntersectionPoints()
          Test two intersection points on one line
 void testTwoIntersectionPoints1()
          Test two intersection points on two different lines
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolygonCircleIntersectorTest

public PolygonCircleIntersectorTest()
Method Detail

testOneIntersectionPoint

public void testOneIntersectionPoint()
Test one intersection point


testTwoIntersectionPoints

public void testTwoIntersectionPoints()
Test two intersection points on one line


testTwoIntersectionPoints1

public void testTwoIntersectionPoints1()
Test two intersection points on two different lines


testTangentIntersection

public void testTangentIntersection()
Test a tangent intersection