Search in sources :

Example 1 with ImportEvent

use of org.drools.workbench.screens.scenariosimulation.client.events.ImportEvent in project drools-wb by kiegroup.

the class ScenarioSimulationEventHandlerTest method onImportEvent.

@Test
public void onImportEvent() {
    ImportEvent event = new ImportEvent(GridWidget.SIMULATION);
    scenarioSimulationEventHandler.onEvent(event);
    verify(fileUploadPopupPresenterMock, times(1)).show(anyList(), eq(ScenarioSimulationEditorConstants.INSTANCE.selectImportFile()), eq(ScenarioSimulationEditorConstants.INSTANCE.uploadWarning()), eq(ScenarioSimulationEditorConstants.INSTANCE.importLabel()), isA(org.uberfire.mvp.Command.class));
}
Also used : SetInstanceHeaderCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetInstanceHeaderCommand) InsertColumnCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.InsertColumnCommand) RunSingleScenarioCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.RunSingleScenarioCommand) DeleteRowCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DeleteRowCommand) AbstractScenarioSimulationCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AbstractScenarioSimulationCommand) DuplicateRowCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DuplicateRowCommand) UpdateSettingsDataCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.UpdateSettingsDataCommand) DuplicateInstanceCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DuplicateInstanceCommand) PrependRowCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.PrependRowCommand) InsertRowCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.InsertRowCommand) SetGridCellValueCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetGridCellValueCommand) AppendColumnCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AppendColumnCommand) PrependColumnCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.PrependColumnCommand) DeleteColumnCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DeleteColumnCommand) DisableTestToolsCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DisableTestToolsCommand) AppendRowCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AppendRowCommand) ReloadTestToolsCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.ReloadTestToolsCommand) EnableTestToolsCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.EnableTestToolsCommand) SetHeaderCellValueCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetHeaderCellValueCommand) SetPropertyHeaderCommand(org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetPropertyHeaderCommand) ImportEvent(org.drools.workbench.screens.scenariosimulation.client.events.ImportEvent) Test(org.junit.Test) AbstractScenarioSimulationTest(org.drools.workbench.screens.scenariosimulation.client.AbstractScenarioSimulationTest)

Aggregations

AbstractScenarioSimulationTest (org.drools.workbench.screens.scenariosimulation.client.AbstractScenarioSimulationTest)1 AbstractScenarioSimulationCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AbstractScenarioSimulationCommand)1 AppendColumnCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AppendColumnCommand)1 AppendRowCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.AppendRowCommand)1 DeleteColumnCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DeleteColumnCommand)1 DeleteRowCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DeleteRowCommand)1 DisableTestToolsCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DisableTestToolsCommand)1 DuplicateInstanceCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DuplicateInstanceCommand)1 DuplicateRowCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.DuplicateRowCommand)1 EnableTestToolsCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.EnableTestToolsCommand)1 InsertColumnCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.InsertColumnCommand)1 InsertRowCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.InsertRowCommand)1 PrependColumnCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.PrependColumnCommand)1 PrependRowCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.PrependRowCommand)1 ReloadTestToolsCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.ReloadTestToolsCommand)1 RunSingleScenarioCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.RunSingleScenarioCommand)1 SetGridCellValueCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetGridCellValueCommand)1 SetHeaderCellValueCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetHeaderCellValueCommand)1 SetInstanceHeaderCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetInstanceHeaderCommand)1 SetPropertyHeaderCommand (org.drools.workbench.screens.scenariosimulation.client.commands.actualcommands.SetPropertyHeaderCommand)1