GroupUsersAssignment implements IsWidget { @PostConstruct public void init() { view.init(this); view.configure(usersExplorer.view); view.configureSave(UsersManagementWidgetsConstants.INSTANCE.addUsersToGroup(), saveEditorCallback); } @Inject  GroupUsersAssignment(@AssignedEntitiesInlineEditor final AssignedEntitiesEditor<GroupUsersAssignment> view,
                                final UsersExplorer usersExplorer,
                                final Event<AddUsersToGroupEvent> addUsersToGroupEvent); @Override Widget asWidget(); @PostConstruct void init(); void show(final String header); void hide(); void clear();  }
@Test public void testInit() { tested.init(); verify(view, times(1)).init(tested); verify(view, times(1)).configure(any(EntitiesExplorerView.class)); verify(view, times(1)).configureSave(anyString(), any(Command.class)); verify(view, times(0)).configureClose(anyString(), any(Command.class)); verify(view, times(0)).show(anyString()); verify(view, times(0)).hide(); }