Package de.novanic.eventservice.test.testhelper

Examples of de.novanic.eventservice.test.testhelper.ListenStartResult


    public void testListen() throws Exception {
        assertEquals(0, myEventService.getActiveListenDomains().size());

        myEventService.register(TEST_DOMAIN);
        assertEquals(1, myEventService.getActiveListenDomains().size());
        ListenStartResult theListenResult_1 = startListen();
        assertEquals(1, myEventService.getActiveListenDomains().size());

        myEventService.register(TEST_DOMAIN_2);
        assertEquals(2, myEventService.getActiveListenDomains().size());
View Full Code Here


            myEventService.addEvent(TEST_DOMAIN, new DummyEvent());
            myEventService.addEvent(TEST_DOMAIN_3, new DummyEvent());
            assertEquals(3, myEventService.getActiveListenDomains().size());
        }

        final ListenStartResult theListenStartResult = startListen();
        joinListen(theListenStartResult);
        assertEquals(15000, getEventCount());
        assertEquals(5000, getEventCount(TEST_DOMAIN));
        assertEquals(5000, getEventCount(TEST_DOMAIN_2));
        assertEquals(5000, getEventCount(TEST_DOMAIN_3));
View Full Code Here

            startAddEvent(TEST_DOMAIN_2, 7);
            assertEquals(3, myEventService.getActiveListenDomains().size());
        }

        joinThreads();
        final ListenStartResult theListenStartResult = startListen();
        joinListen(theListenStartResult);
        assertEquals(4500, getEventCount());
        assertEquals(1500, getEventCount(TEST_DOMAIN));
        assertEquals(1500, getEventCount(TEST_DOMAIN_2));
        assertEquals(1500, getEventCount(TEST_DOMAIN_3));
View Full Code Here

TOP

Related Classes of de.novanic.eventservice.test.testhelper.ListenStartResult

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.