|
|||||||||
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 test.TestGamePhysics
public class TestGamePhysics
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 |
---|
public TestGamePhysics(String name)
name
- Method Detail |
---|
protected void setUp() throws Exception
setUp
in class TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class TestCase
Exception
public void testWillCollideWithBoundEmpty()
public void testMoveBallFloating()
public void testMoveBallFallingNoDrag()
public void testCollideWithBoundNotEmpty()
public void testMoveBallBounce()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |