@Test public void testDisableSearch() { final HTMLElement resultsContainer = mock(HTMLElement.class); resultsContainer.classList = mock(DOMTokenList.class); when(presenter.getResultsContainer()).thenReturn(resultsContainer); view.disableSearch(); verify(resultsContainer.classList).remove(ENABLED_SEARCH); }
void disableSearch() { getResultsContainer().classList.remove(ENABLED_SEARCH); }
DataTypeSearchBarView implements DataTypeSearchBar.View { void disableSearch() { getResultsContainer().classList.remove(ENABLED_SEARCH); } }
DataTypeSearchBarView implements DataTypeSearchBar.View { void disableSearch() { getResultsContainer().classList.remove(ENABLED_SEARCH); } @Inject  DataTypeSearchBarView(final HTMLInputElement searchBar,
                                 final @Named("span") HTMLElement searchIcon,
                                 final HTMLButtonElement closeSearch,
                                 final TranslationService translationService); }
DataTypeSearchBarView implements DataTypeSearchBar.View { void disableSearch() { getResultsContainer().classList.remove(ENABLED_SEARCH); } @Inject  DataTypeSearchBarView(final HTMLInputElement searchBar,
                                 final @Named("span") HTMLElement searchIcon,
                                 final HTMLButtonElement closeSearch,
                                 final TranslationService translationService); @PostConstruct void setupSearchBar(); @Override void init(final DataTypeSearchBar presenter); @EventHandler("close-search") void onSearchBarCloseButton(final ClickEvent e); @EventHandler("search-bar") void onSearchBarKeyUpEvent(final KeyUpEvent event); @EventHandler("search-bar") void onSearchBarKeyDownEvent(final KeyDownEvent e); @EventHandler("search-bar") void onSearchBarChangeEvent(final ChangeEvent e); @Override void resetSearchBar(); @Override void showSearchResults(final List<DataType> results); void refreshItemsPosition(); }
DataTypeSearchBarView implements DataTypeSearchBar.View { void disableSearch() { getResultsContainer().classList.remove(ENABLED_SEARCH); } @Inject  DataTypeSearchBarView(final HTMLInputElement searchBar,
                                 final @Named("span") HTMLElement searchIcon,
                                 final HTMLButtonElement closeSearch,
                                 final TranslationService translationService); @PostConstruct void setupSearchBar(); @Override void init(final DataTypeSearchBar presenter); @EventHandler("close-search") void onSearchBarCloseButton(final ClickEvent e); @EventHandler("search-bar") void onSearchBarKeyUpEvent(final KeyUpEvent event); @EventHandler("search-bar") void onSearchBarKeyDownEvent(final KeyDownEvent e); @EventHandler("search-bar") void onSearchBarChangeEvent(final ChangeEvent e); @Override void resetSearchBar(); @Override void showSearchResults(final List<DataType> results); void refreshItemsPosition();  }