AdminAppsGridPresenterImpl implements AdminAppsGridView.Presenter,
                                                   AppInfoSelectedEvent.AppInfoSelectedEventHandler,
                                                   SaveAppSelected.SaveAppSelectedHandler { @Override public void onAppSearchResultLoad(AppSearchResultLoadEvent event) { listStore.clear(); listStore.addAll(event.getResults()); } @Inject  AdminAppsGridPresenterImpl(final AdminAppsGridViewFactory viewFactory,
                               final ListStore<App> listStore); @Override HandlerRegistration addStoreRemoveHandler(StoreRemoveEvent.StoreRemoveHandler<App> handler); @Override void fireEvent(GwtEvent<?> event); @Override AdminAppsGridView getView(); @Override App getAppFromElement(Element eventTarget); @Override List<App> getSelectedApps(); @Override void onAppCategorySelectionChanged(AppCategorySelectionChangedEvent event); @Override void onAppInfoSelected(final AppInfoSelectedEvent event); @Override void onAppSearchResultLoad(AppSearchResultLoadEvent event); @Override void onDeleteAppsSelected(final DeleteAppsSelected event); @Override void onRestoreAppSelected(final RestoreAppSelected event); @Override void onSaveAppSelected(SaveAppSelected event); void updateBetaStatus(final App app);  }
@Test public void verifyListStoreUpdated_onAppSearchResultLoad() { AppSearchResultLoadEvent eventMock = mock(AppSearchResultLoadEvent.class); final ArrayList<App> resultsMock = Lists.newArrayList(mock(App.class), mock(App.class)); when(eventMock.getResults()).thenReturn(resultsMock); uut.onAppSearchResultLoad(eventMock); verify(listStoreMock).clear(); verify(listStoreMock).addAll(eq(resultsMock)); verifyNoMoreInteractions(listStoreMock); verifyZeroInteractions(adminAppServiceMock, appServiceMock); }