GroupEditor implements IsWidget,
                                    org.uberfire.ext.security.management.client.editor.group.GroupEditor { public void clear() { view.clear(); group = null; } @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 testClear() { tested.group = group; tested.clear(); assertNull(tested.group); verify(view, times(0)).init(tested); verify(view, times(0)).setDeleteButtonVisible(anyBoolean()); verify(view, times(0)).show(anyString()); verify(view, times(1)).clear(); }