|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttesting.gameEngine.EventTest
public class EventTest
Basic testing suite for general EventObject
functionality within
the game engine.
This testing class uses several pre-existing listeners as well as Events from
the VoogaEngine and Pong's MoveUpEvent
to simulate events involving a
hierarchy. This is probably not ideal, but functional for quick tests.
GameRelatedObject
Nested Class Summary | |
---|---|
class |
EventTest.TestCameraListener
In order to test multiple events the EventTest.TestCameraListener interface was
chosen (arbitrarily) as an engine specific event to be used. |
class |
EventTest.TestHierarchyListener
|
class |
EventTest.TestPropertyListener
In order to test multiple events one is taken Java's existing event framework. |
Constructor Summary | |
---|---|
EventTest()
|
Method Summary | |
---|---|
void |
improperMethodCall()
Tests when improper methods are called for firing. |
void |
setUp()
Sets up the framework before each test. |
void |
testAddRemoveEvent()
Tests the addition and removal of elements from the list of EventListener s. |
void |
testEventFiring()
Tests the proper firing of EventObjects in the
GameRelatedObject framework. |
void |
testHierarchyEvents()
|
void |
testImproperRemove()
Tests removing a Listener which was never added to the list of EventListener s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventTest()
Method Detail |
---|
public void setUp()
public void testAddRemoveEvent()
EventListener
s.
public void testImproperRemove()
EventListener
s.
public void testEventFiring()
EventObjects
in the
GameRelatedObject
framework.
public void improperMethodCall()
public void testHierarchyEvents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |