test
Class TestGamePhysics

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.TestGamePhysics
All Implemented Interfaces:
Test

public class TestGamePhysics
extends TestCase

Author:
ruthdhan

Constructor Summary
TestGamePhysics(String name)
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCollideWithBoundNotEmpty()
          test whether it detects about-to-collide stuff using bound check
 void testMoveBallBounce()
          test whether the ball collides with the square bumper
 void testMoveBallFallingNoDrag()
          test a ball that should fall down (y-direction)
 void testMoveBallFloating()
          test a ball that should simply float in space
 void testWillCollideWithBoundEmpty()
          test whether willCollideWithBound works in an empty gs
 
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

TestGamePhysics

public TestGamePhysics(String name)
Parameters:
name -
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class TestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class TestCase
Throws:
Exception

testWillCollideWithBoundEmpty

public void testWillCollideWithBoundEmpty()
test whether willCollideWithBound works in an empty gs


testMoveBallFloating

public void testMoveBallFloating()
test a ball that should simply float in space


testMoveBallFallingNoDrag

public void testMoveBallFallingNoDrag()
test a ball that should fall down (y-direction)


testCollideWithBoundNotEmpty

public void testCollideWithBoundNotEmpty()
test whether it detects about-to-collide stuff using bound check


testMoveBallBounce

public void testMoveBallBounce()
test whether the ball collides with the square bumper