@Test public void populateCoverageReport() { presenterSpy.populateCoverageReport(Type.DMN, simulationRunMetadataLocal); verify(presenterSpy, times(1)).setSimulationRunMetadata(eq(simulationRunMetadataLocal), eq(Type.DMN)); reset(presenterSpy); presenterSpy.populateCoverageReport(Type.DMN, null); verify(presenterSpy, times(1)).showEmptyStateMessage(); reset(presenterSpy); presenterSpy.populateCoverageReport(Type.RULE, simulationRunMetadataLocal); verify(presenterSpy, times(1)).setSimulationRunMetadata(eq(simulationRunMetadataLocal), eq(Type.RULE)); }
@Override public void populateCoverageReport(Type type, SimulationRunMetadata simulationRunMetadata) { if (simulationRunMetadata != null) { setSimulationRunMetadata(simulationRunMetadata, type); } else { showEmptyStateMessage(); } }
CoverageReportPresenter extends AbstractSubDockPresenter<CoverageReportView> implements CoverageReportView.Presenter { @Override public void populateCoverageReport(Type type, SimulationRunMetadata simulationRunMetadata) { if (simulationRunMetadata != null) { setSimulationRunMetadata(simulationRunMetadata, type); } else { showEmptyStateMessage(); } } }
CoverageReportPresenter extends AbstractSubDockPresenter<CoverageReportView> implements CoverageReportView.Presenter { @Override public void populateCoverageReport(Type type, SimulationRunMetadata simulationRunMetadata) { if (simulationRunMetadata != null) { setSimulationRunMetadata(simulationRunMetadata, type); } else { showEmptyStateMessage(); } } CoverageReportPresenter(); @Inject  CoverageReportPresenter(CoverageReportView view,
                                   CoverageReportDonutPresenter coverageReportDonutPresenter,
                                   CoverageElementPresenter coverageElementPresenter,
                                   CoverageScenarioListPresenter coverageScenarioListPresenter); }
CoverageReportPresenter extends AbstractSubDockPresenter<CoverageReportView> implements CoverageReportView.Presenter { @Override public void populateCoverageReport(Type type, SimulationRunMetadata simulationRunMetadata) { if (simulationRunMetadata != null) { setSimulationRunMetadata(simulationRunMetadata, type); } else { showEmptyStateMessage(); } } 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 populateCoverageReport(Type type, SimulationRunMetadata simulationRunMetadata) { if (simulationRunMetadata != null) { setSimulationRunMetadata(simulationRunMetadata, type); } else { showEmptyStateMessage(); } } 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; }