AbstractSelectedColumnCommand extends AbstractScenarioGridCommand { protected abstract void executeIfSelectedColumn(ScenarioSimulationContext context, ScenarioGridColumn selectedColumn); protected  AbstractSelectedColumnCommand(GridWidget gridWidget, FactMappingValueType factMappingValueType); protected  AbstractSelectedColumnCommand();   }
@Test public void executeIfSelected() { commandSpy.execute(scenarioSimulationContextLocal); verify((AbstractSelectedColumnCommand) commandSpy, times(1)).executeIfSelectedColumn(scenarioSimulationContextLocal, gridColumnMock); }
@Test public void executeIfSelected_NoColumn() { gridColumnMock = null; commandSpy.execute(scenarioSimulationContextLocal); verify((AbstractSelectedColumnCommand) commandSpy, never()).executeIfSelectedColumn(scenarioSimulationContextLocal, gridColumnMock); }