Code example for EventBus

Methods: register

0
    } 
 
    @Before 
    public void acquireConnections() { 
        eventBusMessageCount = 0;
        eventBus.register(this);
    } 
 
    @After 
    public void releaseConnections() { 
        eventBus.unregister(this);
    } 
}