@Test public void setDownloadReportCommandNull() { presenterSpy.setDownloadReportCommand(null); assertNull(presenterSpy.downloadReportCommand); assertTrue(downloadReportButtonMock.disabled); }
@Override public void setDownloadReportCommand(Command downloadReportCommand) { this.downloadReportCommand = downloadReportCommand; view.getDownloadReportButton().disabled = this.downloadReportCommand == null; }
CoverageReportPresenter extends AbstractSubDockPresenter<CoverageReportView> implements CoverageReportView.Presenter { @Override public void setDownloadReportCommand(Command downloadReportCommand) { this.downloadReportCommand = downloadReportCommand; view.getDownloadReportButton().disabled = this.downloadReportCommand == null; } }
CoverageReportPresenter extends AbstractSubDockPresenter<CoverageReportView> implements CoverageReportView.Presenter { @Override public void setDownloadReportCommand(Command downloadReportCommand) { this.downloadReportCommand = downloadReportCommand; view.getDownloadReportButton().disabled = this.downloadReportCommand == null; } CoverageReportPresenter(); @Inject  CoverageReportPresenter(CoverageReportView view,
                                   CoverageReportDonutPresenter coverageReportDonutPresenter,
                                   CoverageElementPresenter coverageElementPresenter,
                                   CoverageScenarioListPresenter coverageScenarioListPresenter); }
CoverageReportPresenter extends AbstractSubDockPresenter<CoverageReportView> implements CoverageReportView.Presenter { @Override public void setDownloadReportCommand(Command downloadReportCommand) { this.downloadReportCommand = downloadReportCommand; view.getDownloadReportButton().disabled = this.downloadReportCommand == null; } CoverageReportPresenter(); @Inject  CoverageReportPresenter(CoverageReportView view,
                                   CoverageReportDonutPresenter coverageReportDonutPresenter,
                                   CoverageElementPresenter coverageElementPresenter,
                                   CoverageScenarioListPresenter coverageScenarioListPresenter); @PostConstruct void init(); @Override void reset(); @Override void populateCoverageReport(Type type, SimulationRunMetadata simulationRunMetadata); @Override void onDownloadReportButtonClicked(); @Override void setDownloadReportCommand(Command downloadReportCommand); }
CoverageReportPresenter extends AbstractSubDockPresenter<CoverageReportView> implements CoverageReportView.Presenter { @Override public void setDownloadReportCommand(Command downloadReportCommand) { this.downloadReportCommand = downloadReportCommand; view.getDownloadReportButton().disabled = this.downloadReportCommand == null; } CoverageReportPresenter(); @Inject  CoverageReportPresenter(CoverageReportView view,
                                   CoverageReportDonutPresenter coverageReportDonutPresenter,
                                   CoverageElementPresenter coverageElementPresenter,
                                   CoverageScenarioListPresenter coverageScenarioListPresenter); @PostConstruct void init(); @Override void reset(); @Override void populateCoverageReport(Type type, SimulationRunMetadata simulationRunMetadata); @Override void onDownloadReportButtonClicked(); @Override void setDownloadReportCommand(Command downloadReportCommand); static final int DEFAULT_PREFERRED_WIDTH; static final String IDENTIFIER; }