testing.physicsEngine
Class CircleCircleIntersectorTest

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

public class CircleCircleIntersectorTest
extends junit.framework.TestCase

Checks if circle-circle intersection is correct.

Author:
Sami Boghos

Constructor Summary
CircleCircleIntersectorTest()
           
 
Method Summary
 void testNoIntersections()
          Test no intersection points where the circle are not near each other
 void testNoIntersections1()
          Test if one circle is inside another
 void testOneIntersectionPoint()
          Test one intersection point
 void testTwoIntersectionPoints()
          Test two intersection points
 void testZeroRadius()
          Test if one circle has a zero radius
 
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

CircleCircleIntersectorTest

public CircleCircleIntersectorTest()
Method Detail

testOneIntersectionPoint

public void testOneIntersectionPoint()
Test one intersection point


testTwoIntersectionPoints

public void testTwoIntersectionPoints()
Test two intersection points


testNoIntersections

public void testNoIntersections()
Test no intersection points where the circle are not near each other


testNoIntersections1

public void testNoIntersections1()
Test if one circle is inside another


testZeroRadius

public void testZeroRadius()
Test if one circle has a zero radius