@Test public void nonEmptySelection_onAppCategorySelectionChanged() { AppCategorySelectionChangedEvent eventMock = mock(AppCategorySelectionChangedEvent.class); final List<AppCategory> selection = Lists.newArrayList(mock(AppCategory.class)); when(eventMock.getAppCategorySelection()).thenReturn(selection); uut.onAppCategorySelectionChanged(eventMock); verify(appSearchMock).clear(); verifyNoMoreInteractions(appSearchMock); verifyZeroInteractions(mockAppRun, mockCopyApp, mockCopyApp, mockCopyWf, mockCreateNewApp, mockCreateWorkflow, mockDeleteApp, mockDeleteWf, mockEditApp, mockEditWf, mockRequestTool, mockWfRun, mockshareMenuButton, mockSharePublic, mockShareCollab); }
@Override public void onAppCategorySelectionChanged(AppCategorySelectionChangedEvent event) { if (!event.getAppCategorySelection().isEmpty()) { appSearch.clear(); } }
AppsViewToolbarImpl extends Composite implements AppsToolbarView { @Override public void onAppCategorySelectionChanged(AppCategorySelectionChangedEvent event) { if (!event.getAppCategorySelection().isEmpty()) { appSearch.clear(); } } }
AppsViewToolbarImpl extends Composite implements AppsToolbarView { @Override public void onAppCategorySelectionChanged(AppCategorySelectionChangedEvent event) { if (!event.getAppCategorySelection().isEmpty()) { appSearch.clear(); } } @Inject  AppsViewToolbarImpl(final AppsToolbarAppearance appearance,
                        @Assisted
                        final PagingLoader<FilterPagingLoadConfig, PagingLoadResult<App>> loader); }
AppsViewToolbarImpl extends Composite implements AppsToolbarView { @Override public void onAppCategorySelectionChanged(AppCategorySelectionChangedEvent event) { if (!event.getAppCategorySelection().isEmpty()) { appSearch.clear(); } } @Inject  AppsViewToolbarImpl(final AppsToolbarAppearance appearance,
                        @Assisted
                        final PagingLoader<FilterPagingLoadConfig, PagingLoadResult<App>> loader); @Override HandlerRegistration addAppSearchResultLoadEventHandler(AppSearchResultLoadEventHandler handler); @Override HandlerRegistration addBeforeAppSearchEventHandler(BeforeAppSearchEvent.BeforeAppSearchEventHandler handler); @Override HandlerRegistration addCopyAppSelectedHandler(CopyAppSelected.CopyAppSelectedHandler handler); @Override HandlerRegistration addCopyWorkflowSelectedHandler(CopyWorkflowSelected.CopyWorkflowSelectedHandler handler); @Override HandlerRegistration addCreateNewAppSelectedHandler(CreateNewAppSelected.CreateNewAppSelectedHandler handler); @Override HandlerRegistration addCreateNewWorkflowSelectedHandler(CreateNewWorkflowSelected.CreateNewWorkflowSelectedHandler handler); @Override HandlerRegistration addDeleteAppsSelectedHandler(DeleteAppsSelected.DeleteAppsSelectedHandler handler); @Override HandlerRegistration addEditAppSelectedHandler(EditAppSelected.EditAppSelectedHandler handler); @Override HandlerRegistration addEditWorkflowSelectedHandler(EditWorkflowSelected.EditWorkflowSelectedHandler handler); @Override HandlerRegistration addRequestToolSelectedHandler(RequestToolSelected.RequestToolSelectedHandler handler); @Override HandlerRegistration addRunAppSelectedHandler(RunAppSelected.RunAppSelectedHandler handler); @Override HandlerRegistration addShareAppSelectedHandler(ShareAppsSelected.ShareAppsSelectedHandler handler); @Override void hideAppMenu(); @Override void hideWorkflowMenu(); @Override void onAppCategorySelectionChanged(AppCategorySelectionChangedEvent event); @Override void onOntologyHierarchySelectionChanged(OntologyHierarchySelectionChangedEvent event); @Override void onAppSelectionChanged(final AppSelectionChangedEvent event); }
AppsViewToolbarImpl extends Composite implements AppsToolbarView { @Override public void onAppCategorySelectionChanged(AppCategorySelectionChangedEvent event) { if (!event.getAppCategorySelection().isEmpty()) { appSearch.clear(); } } @Inject  AppsViewToolbarImpl(final AppsToolbarAppearance appearance,
                        @Assisted
                        final PagingLoader<FilterPagingLoadConfig, PagingLoadResult<App>> loader); @Override HandlerRegistration addAppSearchResultLoadEventHandler(AppSearchResultLoadEventHandler handler); @Override HandlerRegistration addBeforeAppSearchEventHandler(BeforeAppSearchEvent.BeforeAppSearchEventHandler handler); @Override HandlerRegistration addCopyAppSelectedHandler(CopyAppSelected.CopyAppSelectedHandler handler); @Override HandlerRegistration addCopyWorkflowSelectedHandler(CopyWorkflowSelected.CopyWorkflowSelectedHandler handler); @Override HandlerRegistration addCreateNewAppSelectedHandler(CreateNewAppSelected.CreateNewAppSelectedHandler handler); @Override HandlerRegistration addCreateNewWorkflowSelectedHandler(CreateNewWorkflowSelected.CreateNewWorkflowSelectedHandler handler); @Override HandlerRegistration addDeleteAppsSelectedHandler(DeleteAppsSelected.DeleteAppsSelectedHandler handler); @Override HandlerRegistration addEditAppSelectedHandler(EditAppSelected.EditAppSelectedHandler handler); @Override HandlerRegistration addEditWorkflowSelectedHandler(EditWorkflowSelected.EditWorkflowSelectedHandler handler); @Override HandlerRegistration addRequestToolSelectedHandler(RequestToolSelected.RequestToolSelectedHandler handler); @Override HandlerRegistration addRunAppSelectedHandler(RunAppSelected.RunAppSelectedHandler handler); @Override HandlerRegistration addShareAppSelectedHandler(ShareAppsSelected.ShareAppsSelectedHandler handler); @Override void hideAppMenu(); @Override void hideWorkflowMenu(); @Override void onAppCategorySelectionChanged(AppCategorySelectionChangedEvent event); @Override void onOntologyHierarchySelectionChanged(OntologyHierarchySelectionChangedEvent event); @Override void onAppSelectionChanged(final AppSelectionChangedEvent event);  }