use of org.drools.workbench.screens.scenariosimulation.client.events.EnableTestToolsEvent in project drools-wb by kiegroup.
the class ScenarioSimulationGridHeaderUtilitiesTest method testEnableTestToolsEventInstanceNotAssigned.
@Test
public void testEnableTestToolsEventInstanceNotAssigned() {
when(scenarioGridColumnOne.isInstanceAssigned()).thenReturn(false);
final EnableTestToolsEvent event = ScenarioSimulationGridHeaderUtilities.getEnableTestToolsEvent(scenarioGridMock, scenarioGridColumnOne, clickedScenarioHeaderMetadataMock, UI_COLUMN_INDEX, COLUMN_GROUP);
assertThat(event.getFilterTerm()).isEqualTo(COLUMN_ONE_TITLE + ";" + COLUMN_TWO_TITLE + ";" + MULTIPART_VALUE);
assertThat(event.isNotEqualsSearch()).isTrue();
}
use of org.drools.workbench.screens.scenariosimulation.client.events.EnableTestToolsEvent in project drools-wb by kiegroup.
the class ScenarioSimulationEventHandlerTest method onEnableTestToolsEvent.
@Test
public void onEnableTestToolsEvent() {
EnableTestToolsEvent event = new EnableTestToolsEvent();
scenarioSimulationEventHandler.onEvent(event);
verify(scenarioSimulationEventHandler).commonExecution(isA(EnableTestToolsCommand.class), eq(false));
}
Aggregations