@Test public void testOnArtifactSelected() { presenter.setArtifactSelectHandler(artifactSelectHandler); presenter.onArtifactSelected(VALUE); verify(artifactSelectHandler, times(1)).onArtifactSelected(VALUE); }
protected void onArtifactSelected(final String pathSelected) { if (artifactSelectHandler != null) { artifactSelectHandler.onArtifactSelected(pathSelected); } }
ArtifactSelectorPresenter { protected void onArtifactSelected(final String pathSelected) { if (artifactSelectHandler != null) { artifactSelectHandler.onArtifactSelected(pathSelected); } } }
ArtifactSelectorPresenter { protected void onArtifactSelected(final String pathSelected) { if (artifactSelectHandler != null) { artifactSelectHandler.onArtifactSelected(pathSelected); } } @Inject  ArtifactSelectorPresenter(final View view,
                                     final ArtifactListPresenter artifactListPresenter); }
ArtifactSelectorPresenter { protected void onArtifactSelected(final String pathSelected) { if (artifactSelectHandler != null) { artifactSelectHandler.onArtifactSelected(pathSelected); } } @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 onArtifactSelected(final String pathSelected) { if (artifactSelectHandler != null) { artifactSelectHandler.onArtifactSelected(pathSelected); } } @Inject  ArtifactSelectorPresenter(final View view,
                                     final ArtifactListPresenter artifactListPresenter); @PostConstruct void init(); View getView(); void clear(); void refresh(); ArtifactListView getArtifactListView(); void setArtifactSelectHandler(final ArtifactSelectHandler artifactSelectHandler);  }