Search in sources :

Example 1 with SimpleEventBus

use of com.google.gwt.event.shared.SimpleEventBus in project webprotege by protegeproject.

the class LoggedInUser_TestCase method setUp.

@Before
public void setUp() {
    when(otherUserDetails.getUserId()).thenReturn(otherUserId);
    when(otherUserInSession.getUserDetails()).thenReturn(otherUserDetails);
    when(guestUserInSession.getUserDetails()).thenReturn(UserDetails.getGuestUserDetails());
    EventBus eventBus = new SimpleEventBus();
    loggedInUser = new LoggedInUser(eventBus);
    eventBus.addHandler(ON_USER_LOGGED_IN, userLoggedInHandler);
    eventBus.addHandler(ON_USER_LOGGED_OUT, userLoggedOutHandler);
}
Also used : SimpleEventBus(com.google.gwt.event.shared.SimpleEventBus) EventBus(com.google.web.bindery.event.shared.EventBus) SimpleEventBus(com.google.gwt.event.shared.SimpleEventBus) Before(org.junit.Before)

Aggregations

SimpleEventBus (com.google.gwt.event.shared.SimpleEventBus)1 EventBus (com.google.web.bindery.event.shared.EventBus)1 Before (org.junit.Before)1