Search in sources :

Example 16 with Background

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));
}
Also used : FactMapping(org.drools.scenariosimulation.api.model.FactMapping) Background(org.drools.scenariosimulation.api.model.Background) Test(org.junit.Test)

Aggregations

Background (org.drools.scenariosimulation.api.model.Background)16 Simulation (org.drools.scenariosimulation.api.model.Simulation)10 Settings (org.drools.scenariosimulation.api.model.Settings)9 Test (org.junit.Test)8 Before (org.junit.Before)5 Path (org.uberfire.backend.vfs.Path)5 FactMapping (org.drools.scenariosimulation.api.model.FactMapping)4 ScenarioSimulationModel (org.drools.scenariosimulation.api.model.ScenarioSimulationModel)4 ScenarioWithIndex (org.drools.scenariosimulation.api.model.ScenarioWithIndex)3 ScesimModelDescriptor (org.drools.scenariosimulation.api.model.ScesimModelDescriptor)3 ScenarioSimulationContext (org.drools.workbench.screens.scenariosimulation.client.commands.ScenarioSimulationContext)3 List (java.util.List)2 AbstractScesimModel (org.drools.scenariosimulation.api.model.AbstractScesimModel)2 BackgroundData (org.drools.scenariosimulation.api.model.BackgroundData)2 BackgroundDataWithIndex (org.drools.scenariosimulation.api.model.BackgroundDataWithIndex)2 ExpressionIdentifier (org.drools.scenariosimulation.api.model.ExpressionIdentifier)2 GIVEN (org.drools.scenariosimulation.api.model.FactMappingType.GIVEN)2 OTHER (org.drools.scenariosimulation.api.model.FactMappingType.OTHER)2 Scenario (org.drools.scenariosimulation.api.model.Scenario)2 ScenarioGridWidget (org.drools.workbench.screens.scenariosimulation.client.widgets.ScenarioGridWidget)2