Package net.engio.mbassy.messages

Examples of net.engio.mbassy.messages.SubTestMessage


        // this will subscribe the listeners concurrently to the bus
        TestUtil.setup(bus, listeners, 10);

        TestMessage message = new TestMessage();
        TestMessage subTestMessage = new SubTestMessage();

        bus.post(message).now();
        bus.post(subTestMessage).now();

        assertEquals(100, message.counter.get());
View Full Code Here


        // this will subscribe the listeners concurrently to the bus
        TestUtil.setup(bus, listeners, 10);

        bus.post(new Object()).now();
        bus.post(new SubTestMessage()).now();

        assertEquals(100, FilteredEventCounter.get()); // the SubTestMessage should have been republished as a filtered event
        assertEquals(100, DeadEventCounter.get()); // Object.class was filtered and the fil
    }
View Full Code Here

        // this will subscribe the listeners concurrently to the bus
        TestUtil.setup(bus, listeners, 10);

        TestMessage supertype = new TestMessage();
        TestMessage subtype = new SubTestMessage();

        bus.publish(supertype);
        bus.publish(subtype);

        assertEquals(100, subtype.counter.get());
View Full Code Here

TOP

Related Classes of net.engio.mbassy.messages.SubTestMessage

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.