Search in sources :

Example 1 with UndoEvent

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

the class ScenarioSimulationEventHandlerTest method onUndoEvent.

@Test
public void onUndoEvent() {
    UndoEvent event = new UndoEvent();
    scenarioSimulationEventHandler.onEvent(event);
    verify(scenarioCommandRegistryManagerMock, times(1)).undo(eq(scenarioSimulationContextLocal));
}
Also used : UndoEvent(org.drools.workbench.screens.scenariosimulation.client.events.UndoEvent) Test(org.junit.Test) AbstractScenarioSimulationTest(org.drools.workbench.screens.scenariosimulation.client.AbstractScenarioSimulationTest)

Aggregations

AbstractScenarioSimulationTest (org.drools.workbench.screens.scenariosimulation.client.AbstractScenarioSimulationTest)1 UndoEvent (org.drools.workbench.screens.scenariosimulation.client.events.UndoEvent)1 Test (org.junit.Test)1