use of org.drools.scenariosimulation.api.model.SimulationRunMetadata in project drools-wb by kiegroup.
the class CoverageReportPresenterTest method setSimulationRunMetadataNoRuleOrDecisionDMN.
@Test
public void setSimulationRunMetadataNoRuleOrDecisionDMN() {
simulationRunMetadataLocal = new SimulationRunMetadata(0, executedLocal, outputCounterLocal, scenarioCounterLocal, auditLog);
presenterSpy.setSimulationRunMetadata(simulationRunMetadataLocal, Type.DMN);
verify(coverageReportViewMock, times(1)).setEmptyStatusText(eq(ScenarioSimulationEditorConstants.INSTANCE.noDecisionsAvailable()));
verify(coverageReportViewMock, times(1)).hide();
verify(presenterSpy, never()).populateSummary(anyInt(), anyInt(), anyDouble());
verify(presenterSpy, never()).populateList(any());
verify(presenterSpy, never()).populateScenarioList(any(), any());
verify(coverageReportViewMock, never()).show();
}
use of org.drools.scenariosimulation.api.model.SimulationRunMetadata in project drools-wb by kiegroup.
the class CoverageReportPresenterTest method setSimulationRunMetadataNoRuleOrDecisionRULE.
@Test
public void setSimulationRunMetadataNoRuleOrDecisionRULE() {
simulationRunMetadataLocal = new SimulationRunMetadata(0, executedLocal, outputCounterLocal, scenarioCounterLocal, auditLog);
presenterSpy.setSimulationRunMetadata(simulationRunMetadataLocal, Type.RULE);
verify(coverageReportViewMock, times(1)).setEmptyStatusText(eq(ScenarioSimulationEditorConstants.INSTANCE.noRulesAvailable()));
verify(coverageReportViewMock, times(1)).hide();
verify(presenterSpy, never()).populateSummary(anyInt(), anyInt(), anyDouble());
verify(presenterSpy, never()).populateList(any());
verify(presenterSpy, never()).populateScenarioList(any(), any());
verify(coverageReportViewMock, never()).show();
}
Aggregations