Package com.google.common.eventbus

Examples of com.google.common.eventbus.EventBus.unregister()


        assertThat(reader.getLastMessage()).isEqualTo(200);
        assertThat(listener.getLastMessage()).isEqualTo(200);
       
       
        //when
        eventBus.unregister(reader);
        eventBus.post(new OurTestEvent(300));


        // then
        assertThat(listener.getLastMessage()).isEqualTo(300);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.