Package de.novanic.eventservice.client.event

Examples of de.novanic.eventservice.client.event.Event


public class EventExecutionCommandTest extends ClientCommandTestCase
{
    @Test
    public void testExecute() {
        final Domain theTestDomain = DomainFactory.getDomain("test_domain");
        final Event theTestEvent = new DummyEvent();

        getRemoteEventConnectorMock().sendEvent(theTestDomain, theTestEvent, getCommandCallback());

        testExecute(new EventExecutionCommand(getRemoteEventConnectorMock(), theTestDomain, theTestEvent, getCommandCallback()));
    }
View Full Code Here


    }

    @Test
    public void testExecute_2() {
        final Domain theUserSpecificDomain = DomainFactory.USER_SPECIFIC_DOMAIN;
        final Event theTestEvent = new DummyEvent();

        getRemoteEventConnectorMock().sendEvent(theUserSpecificDomain, theTestEvent, getCommandCallback());

        testExecute(new EventExecutionCommand(getRemoteEventConnectorMock(), theUserSpecificDomain, theTestEvent, getCommandCallback()));
    }
View Full Code Here

{
    @Test
    public void testApply() {
        DummyUnlistenEventListener theUnlistenEventListenerAdapter = new DummyUnlistenEventListener();

        theUnlistenEventListenerAdapter.apply(new Event() {});
        assertFalse(theUnlistenEventListenerAdapter.isOnUnlistenCalled);

        theUnlistenEventListenerAdapter.apply(new Event() {});
        assertFalse(theUnlistenEventListenerAdapter.isOnUnlistenCalled);

        theUnlistenEventListenerAdapter.apply(new DefaultUnlistenEvent());
        assertTrue(theUnlistenEventListenerAdapter.isOnUnlistenCalled);
    }
View Full Code Here

public class CompositeEventFilterTest
{
    @Test
    public void testMatch() {
        EventFilter theEventFilter = new DefaultEventFilter();
        assertFalse(theEventFilter.match(new Event() {}));
    }
View Full Code Here

public class DefaultEventFilterTest
{
    @Test
    public void testMatch() {
        EventFilter theEventFilter = new DefaultEventFilter();
        assertFalse(theEventFilter.match(new Event() {}));
    }
View Full Code Here

        Log.setCurrentLogLevel(currentLogLevel);
    }

    @Test
    public void callApplyWithNotSessionEvent() throws Exception {
        Event notSessionEvent = mock(Event.class);

        eventProcessor.apply(notSessionEvent);

        verifyZeroInteractions(eventBus);
    }
View Full Code Here

TOP

Related Classes of de.novanic.eventservice.client.event.Event

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.