@Test public void testOnSearch() { when(view.getFilter()).thenReturn(VALUE); presenter.onSearch(); verify(artifactListPresenter, times(1)).search(VALUE, presenter.FORMATS); }
protected void onSearch() { artifactListPresenter.search(view.getFilter(), FORMATS); }
ArtifactSelectorPresenter { protected void onSearch() { artifactListPresenter.search(view.getFilter(), FORMATS); } }
ArtifactSelectorPresenter { protected void onSearch() { artifactListPresenter.search(view.getFilter(), FORMATS); } @Inject  ArtifactSelectorPresenter(final View view,
                                     final ArtifactListPresenter artifactListPresenter); }
ArtifactSelectorPresenter { protected void onSearch() { artifactListPresenter.search(view.getFilter(), FORMATS); } @Inject  ArtifactSelectorPresenter(final View view,
                                     final ArtifactListPresenter artifactListPresenter); @PostConstruct void init(); View getView(); void clear(); void refresh(); ArtifactListView getArtifactListView(); void setArtifactSelectHandler(final ArtifactSelectHandler artifactSelectHandler); }
ArtifactSelectorPresenter { protected void onSearch() { artifactListPresenter.search(view.getFilter(), FORMATS); } @Inject  ArtifactSelectorPresenter(final View view,
                                     final ArtifactListPresenter artifactListPresenter); @PostConstruct void init(); View getView(); void clear(); void refresh(); ArtifactListView getArtifactListView(); void setArtifactSelectHandler(final ArtifactSelectHandler artifactSelectHandler);  }