GroupEditor implements IsWidget,
                                    org.uberfire.ext.security.management.client.editor.group.GroupEditor { @Override public void show(final Group group) { clear(); this.isEditMode = false; open(group); onShowEvent.fire(new OnShowEvent(this, group)); } @Inject  GroupEditor(final ClientUserSystemManager userSystemManager,
                       final Event<OnEditEvent> onEditEvent,
                       final Event<OnShowEvent> onShowEvent,
                       final Event<OnDeleteEvent> onDeleteEvent,
                       final ACLSettings aclSettings,
                       final ACLViewer aclViewer,
                       final ACLEditor aclEditor,
                       final View view); @Override Widget asWidget(); @PostConstruct void init(); @Override String name(); @Override PerspectiveActivity homePerspective(); @Override int groupPriority(); @Override PermissionCollection permissions(); ACLSettings getAclSettings(); ACLEditor getAclEditor(); @Override void show(final Group group); @Override void edit(final Group group); void clear(); @Override void flush(); @Override Group getValue(); @Override void setViolations(final Set<ConstraintViolation<Group>> violations); public View view; }
@Test public void testShow() { tested.show(group); assertEquals(group, tested.group); verify(view, times(1)).clear(); verify(view, times(1)).show("group1"); verify(view, times(1)).showACL(aclViewer); verify(view, times(1)).setDeleteButtonVisible(false); verify(view, times(1)).setEditButtonVisible(true); verify(view, times(1)).setDeleteButtonVisible(false); }