use of org.drools.scenariosimulation.api.model.Background in project drools-wb by kiegroup.
the class ScenarioGridTest method setHeaderColumns.
@Test
public void setHeaderColumns() {
scenarioGridSpy.setHeaderColumns(simulation, ScenarioSimulationModel.Type.RULE);
verify(scenarioGridSpy, times(COLUMNS)).setHeaderColumn(anyInt(), isA(FactMapping.class), eq(true));
scenarioGridSpy.setHeaderColumns(simulation, ScenarioSimulationModel.Type.DMN);
verify(scenarioGridSpy, times(COLUMNS)).setHeaderColumn(anyInt(), isA(FactMapping.class), eq(false));
Background background = new Background();
scenarioGridSpy.setHeaderColumns(background, ScenarioSimulationModel.Type.RULE);
verify(scenarioGridSpy, times(COLUMNS)).setHeaderColumn(anyInt(), isA(FactMapping.class), eq(false));
scenarioGridSpy.setHeaderColumns(background, ScenarioSimulationModel.Type.DMN);
verify(scenarioGridSpy, times(COLUMNS)).setHeaderColumn(anyInt(), isA(FactMapping.class), eq(false));
}
Aggregations