Search in sources :

Example 11 with SessionStartedEvent

use of org.eclipse.n4js.tester.events.SessionStartedEvent in project n4js by eclipse.

the class TestEventQueueTest method testExpectedIsLessThanActual.

/**
 */
@Test(expected = AssertionError.class)
public void testExpectedIsLessThanActual() {
    final String sessionId = "sessionId";
    queue.init(2);
    post(new SessionStartedEvent(sessionId));
    post(new SessionStartedEvent(sessionId));
    queue.assertEquals(sessionId, "SessionStartedEvent|SID:sessionId|");
}
Also used : SessionStartedEvent(org.eclipse.n4js.tester.events.SessionStartedEvent) Test(org.junit.Test)

Aggregations

SessionStartedEvent (org.eclipse.n4js.tester.events.SessionStartedEvent)11 Test (org.junit.Test)8 SessionEndedEvent (org.eclipse.n4js.tester.events.SessionEndedEvent)3 SessionFailedEvent (org.eclipse.n4js.tester.events.SessionFailedEvent)3 TestEndedEvent (org.eclipse.n4js.tester.events.TestEndedEvent)3 TestStartedEvent (org.eclipse.n4js.tester.events.TestStartedEvent)3 SessionFinishedEvent (org.eclipse.n4js.tester.events.SessionFinishedEvent)2 TestPingedEvent (org.eclipse.n4js.tester.events.TestPingedEvent)2 JsonParseException (com.fasterxml.jackson.core.JsonParseException)1 JsonMappingException (com.fasterxml.jackson.databind.JsonMappingException)1 Maps.newHashMap (com.google.common.collect.Maps.newHashMap)1 AllowConcurrentEvents (com.google.common.eventbus.AllowConcurrentEvents)1 Subscribe (com.google.common.eventbus.Subscribe)1 IOException (java.io.IOException)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1 ID (org.eclipse.n4js.tester.domain.ID)1 SessionPingedEvent (org.eclipse.n4js.tester.events.SessionPingedEvent)1 ClientResourceException (org.eclipse.n4js.tester.server.resources.ClientResourceException)1