SecurityExplorerScreen { @PostConstruct public void init() { view.init(this, rolesExplorer, groupsExplorer, usersExplorer); rolesExplorer.show(); view.rolesEnabled(true); view.groupsEnabled(false); view.usersEnabled(false); } @Inject  SecurityExplorerScreen(final View view,
                                  final RolesExplorer rolesExplorer,
                                  final GroupsExplorer groupsExplorer,
                                  final UsersExplorer usersExplorer,
                                  final ErrorPopupPresenter errorPopupPresenter,
                                  final PlaceManager placeManager,
                                  final ClientUserSystemManager userSystemManager,
                                  final ClientSecurityExceptionMessageResolver exceptionMessageResolver); @WorkbenchPartTitle String getTitle(); @WorkbenchPartView IsWidget getWidget(); @PostConstruct void init(); @OnStartup void onStartup(final PlaceRequest placeRequest); @OnClose void onClose(); static final String SCREEN_ID; static final String ACTIVE_TAB; static final String ROLES_TAB; static final String GROUPS_TAB; static final String USERS_TAB; }
@Test public void testInit() { tested.init(); verify(view, times(1)).init(eq(tested), eq(rolesExplorer), eq(groupsExplorer), eq(usersExplorer)); verify(rolesExplorer, times(1)).show(); verify(view, times(1)).rolesEnabled(eq(true)); verify(view, times(1)).groupsEnabled(eq(false)); verify(view, times(1)).usersEnabled(eq(false)); }