Keel 2.1RC2

org.keel.services.event
Class EventServiceTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.keel.util.test.AbstractKeelTest
              extended byorg.keel.util.test.AbstractKeelServiceTest
                  extended byorg.keel.services.event.EventServiceTest
All Implemented Interfaces:
EventListener, junit.framework.Test

public abstract class EventServiceTest
extends AbstractKeelServiceTest
implements EventListener


Field Summary
private  boolean eventReceived
           
 
Fields inherited from class org.keel.util.test.AbstractKeelTest
hint, myContainer
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
EventServiceTest(java.lang.String name)
          Constructs a test case with the given name.
 
Method Summary
 java.lang.String getRole()
           
 void receiveEvent(Event e)
          An EventListener need only implement this one method to recieve notifications from the EventManager of all events that this listener is registered to receive.
 void testBasics()
          Test verifying a event handling
 
Methods inherited from class org.keel.util.test.AbstractKeelServiceTest
getHint, getServiceUnderTest
 
Methods inherited from class org.keel.util.test.AbstractKeelTest
getContainer, getService, main, setUp, suite, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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
 

Field Detail

eventReceived

private boolean eventReceived
Constructor Detail

EventServiceTest

public EventServiceTest(java.lang.String name)
Constructs a test case with the given name.

Parameters:
name -
Method Detail

testBasics

public void testBasics()
                throws java.lang.Exception
Test verifying a event handling

Throws:
java.lang.Exception

receiveEvent

public void receiveEvent(Event e)
Description copied from interface: EventListener
An EventListener need only implement this one method to recieve notifications from the EventManager of all events that this listener is registered to receive.

Specified by:
receiveEvent in interface EventListener

getRole

public java.lang.String getRole()
                         throws java.lang.Exception
Specified by:
getRole in class AbstractKeelServiceTest
Throws:
java.lang.Exception
See Also:
AbstractKeelServiceTest.getRole()

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.