@Test public void treeSelectionsClearedAndRegexStored_onAppSearchResultLoad() { uut.searchRegexPattern = "initial regex pattern"; final String TEST_SEARCH_PATTERN = "test pattern"; AppSearchResultLoadEvent eventMock = mock(AppSearchResultLoadEvent.class); when(eventMock.getSearchPattern()).thenReturn(TEST_SEARCH_PATTERN); uut.onAppSearchResultLoad(eventMock); verify(eventMock).getSearchPattern(); verify(selectionModelMock, times(2)).deselectAll(); }
@Override public void onAppSearchResultLoad(AppSearchResultLoadEvent event) { searchRegexPattern = event.getSearchPattern(); workspaceView.getTree().getSelectionModel().deselectAll(); hpcView.getTree().getSelectionModel().deselectAll(); }
AppCategoriesPresenterImpl implements AppCategoriesView.Presenter,
                                                   AppCategoriesView.AppCategoryHierarchyProvider,
                                                   AppUpdatedEvent.AppUpdatedEventHandler,
                                                   AppSavedEvent.AppSavedEventHandler,
                                                   AppCategorySelectionChangedEvent.AppCategorySelectionChangedEventHandler { @Override public void onAppSearchResultLoad(AppSearchResultLoadEvent event) { searchRegexPattern = event.getSearchPattern(); workspaceView.getTree().getSelectionModel().deselectAll(); hpcView.getTree().getSelectionModel().deselectAll(); } }
AppCategoriesPresenterImpl implements AppCategoriesView.Presenter,
                                                   AppCategoriesView.AppCategoryHierarchyProvider,
                                                   AppUpdatedEvent.AppUpdatedEventHandler,
                                                   AppSavedEvent.AppSavedEventHandler,
                                                   AppCategorySelectionChangedEvent.AppCategorySelectionChangedEventHandler { @Override public void onAppSearchResultLoad(AppSearchResultLoadEvent event) { searchRegexPattern = event.getSearchPattern(); workspaceView.getTree().getSelectionModel().deselectAll(); hpcView.getTree().getSelectionModel().deselectAll(); } @Inject  AppCategoriesPresenterImpl(final DEProperties props,
                               final JsonUtil jsonUtil,
                               final EventBus eventBus,
                               final AppCategoriesViewFactory viewFactory); }
AppCategoriesPresenterImpl implements AppCategoriesView.Presenter,
                                                   AppCategoriesView.AppCategoryHierarchyProvider,
                                                   AppUpdatedEvent.AppUpdatedEventHandler,
                                                   AppSavedEvent.AppSavedEventHandler,
                                                   AppCategorySelectionChangedEvent.AppCategorySelectionChangedEventHandler { @Override public void onAppSearchResultLoad(AppSearchResultLoadEvent event) { searchRegexPattern = event.getSearchPattern(); workspaceView.getTree().getSelectionModel().deselectAll(); hpcView.getTree().getSelectionModel().deselectAll(); } @Inject  AppCategoriesPresenterImpl(final DEProperties props,
                               final JsonUtil jsonUtil,
                               final EventBus eventBus,
                               final AppCategoriesViewFactory viewFactory); @Override List<String> getGroupHierarchy(AppCategory appCategory); @Override AppCategory getSelectedAppCategory(); @Override AppCategoriesView getWorkspaceView(); @Override void go(final HasId selectedAppCategory, final DETabPanel tabPanel); @Override void setViewDebugId(String baseID); @Override void onAppSaved(AppSavedEvent event); @Override void onAppSearchResultLoad(AppSearchResultLoadEvent event); @Override void onAppUpdated(final AppUpdatedEvent event); @Override void onCopyAppSelected(CopyAppSelected event); @Override void onCopyWorkflowSelected(final CopyWorkflowSelected event); @Override HandlerRegistration addAppCategorySelectedEventHandler(AppCategorySelectionChangedEvent.AppCategorySelectionChangedEventHandler handler); @Override void onAppCategorySelectionChanged(AppCategorySelectionChangedEvent event); }
AppCategoriesPresenterImpl implements AppCategoriesView.Presenter,
                                                   AppCategoriesView.AppCategoryHierarchyProvider,
                                                   AppUpdatedEvent.AppUpdatedEventHandler,
                                                   AppSavedEvent.AppSavedEventHandler,
                                                   AppCategorySelectionChangedEvent.AppCategorySelectionChangedEventHandler { @Override public void onAppSearchResultLoad(AppSearchResultLoadEvent event) { searchRegexPattern = event.getSearchPattern(); workspaceView.getTree().getSelectionModel().deselectAll(); hpcView.getTree().getSelectionModel().deselectAll(); } @Inject  AppCategoriesPresenterImpl(final DEProperties props,
                               final JsonUtil jsonUtil,
                               final EventBus eventBus,
                               final AppCategoriesViewFactory viewFactory); @Override List<String> getGroupHierarchy(AppCategory appCategory); @Override AppCategory getSelectedAppCategory(); @Override AppCategoriesView getWorkspaceView(); @Override void go(final HasId selectedAppCategory, final DETabPanel tabPanel); @Override void setViewDebugId(String baseID); @Override void onAppSaved(AppSavedEvent event); @Override void onAppSearchResultLoad(AppSearchResultLoadEvent event); @Override void onAppUpdated(final AppUpdatedEvent event); @Override void onCopyAppSelected(CopyAppSelected event); @Override void onCopyWorkflowSelected(final CopyWorkflowSelected event); @Override HandlerRegistration addAppCategorySelectedEventHandler(AppCategorySelectionChangedEvent.AppCategorySelectionChangedEventHandler handler); @Override void onAppCategorySelectionChanged(AppCategorySelectionChangedEvent event);  }