@Test public void shouldGetCorrectOutputOnSuccessAndNotNegated() { given(action.executeAction(connectors)).willReturn(new ExecuteResult(true)); final ExecuteResult r1 = step.execute(0, connectors); assertEquals(ExecuteResult.DEFAULT_SUCCESS_OUTPUT, r1.getOutput()); }
@Override public ExecuteResult execute(int i, ConnectorManager connectors) { try { return getExecuteResult(i, connectors, action.executeAction(connectors)); } catch (Exception e) { LOGGER.error(LoggerMarkers.LEARNER, "The action could not be executed.", e); return new ExecuteResult(false, String.valueOf(i + 1)); } }
SymbolActionStep extends SymbolStep implements Serializable { @Override public ExecuteResult execute(int i, ConnectorManager connectors) { try { return getExecuteResult(i, connectors, action.executeAction(connectors)); } catch (Exception e) { LOGGER.error(LoggerMarkers.LEARNER, "The action could not be executed.", e); return new ExecuteResult(false, String.valueOf(i + 1)); } } }
SymbolActionStep extends SymbolStep implements Serializable { @Override public ExecuteResult execute(int i, ConnectorManager connectors) { try { return getExecuteResult(i, connectors, action.executeAction(connectors)); } catch (Exception e) { LOGGER.error(LoggerMarkers.LEARNER, "The action could not be executed.", e); return new ExecuteResult(false, String.valueOf(i + 1)); } } SymbolActionStep();  SymbolActionStep(SymbolAction action); }
SymbolActionStep extends SymbolStep implements Serializable { @Override public ExecuteResult execute(int i, ConnectorManager connectors) { try { return getExecuteResult(i, connectors, action.executeAction(connectors)); } catch (Exception e) { LOGGER.error(LoggerMarkers.LEARNER, "The action could not be executed.", e); return new ExecuteResult(false, String.valueOf(i + 1)); } } SymbolActionStep();  SymbolActionStep(SymbolAction action); @Override ExecuteResult execute(int i, ConnectorManager connectors); SymbolAction getAction(); void setAction(SymbolAction action); }
SymbolActionStep extends SymbolStep implements Serializable { @Override public ExecuteResult execute(int i, ConnectorManager connectors) { try { return getExecuteResult(i, connectors, action.executeAction(connectors)); } catch (Exception e) { LOGGER.error(LoggerMarkers.LEARNER, "The action could not be executed.", e); return new ExecuteResult(false, String.valueOf(i + 1)); } } SymbolActionStep();  SymbolActionStep(SymbolAction action); @Override ExecuteResult execute(int i, ConnectorManager connectors); SymbolAction getAction(); void setAction(SymbolAction action);  }