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);
}
Aggregations