testing.gameEngine
Class EventTest

java.lang.Object
  extended by testing.gameEngine.EventTest

public class EventTest
extends java.lang.Object

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.

Author:
Geoffrey Lawler
See Also:
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 EventListeners.
 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 EventListeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventTest

public EventTest()
Method Detail

setUp

public void setUp()
Sets up the framework before each test.


testAddRemoveEvent

public void testAddRemoveEvent()
Tests the addition and removal of elements from the list of EventListeners.


testImproperRemove

public void testImproperRemove()
Tests removing a Listener which was never added to the list of EventListeners.


testEventFiring

public void testEventFiring()
Tests the proper firing of EventObjects in the GameRelatedObject framework.


improperMethodCall

public void improperMethodCall()
Tests when improper methods are called for firing.


testHierarchyEvents

public void testHierarchyEvents()