@Test public void testMarkAsFailed() throws Exception { TestStepCommand command = new TestStepCommand(taskCommand, stepBackend, step); command.markAsFailed(new ApiFeException("Something happened")); StepEntity stepEntity = stepBackend.getStepByTaskIdAndOperation( step.getTask().getId(), step.getOperation()); assertThat(stepEntity.getState(), is(StepEntity.State.ERROR)); assertThat(stepEntity.getEndTime(), is(notNullValue())); }
@Override protected void markAsFailed(Throwable t) throws TaskNotFoundException { stepBackend.markStepAsFailed(step, t); }
StepCommand extends BaseCommand { @Override protected void markAsFailed(Throwable t) throws TaskNotFoundException { stepBackend.markStepAsFailed(step, t); } }
StepCommand extends BaseCommand { @Override protected void markAsFailed(Throwable t) throws TaskNotFoundException { stepBackend.markStepAsFailed(step, t); } protected  StepCommand(TaskCommand taskCommand, StepBackend stepBackend, StepEntity step); }
StepCommand extends BaseCommand { @Override protected void markAsFailed(Throwable t) throws TaskNotFoundException { stepBackend.markStepAsFailed(step, t); } protected  StepCommand(TaskCommand taskCommand, StepBackend stepBackend, StepEntity step);  }
StepCommand extends BaseCommand { @Override protected void markAsFailed(Throwable t) throws TaskNotFoundException { stepBackend.markStepAsFailed(step, t); } protected  StepCommand(TaskCommand taskCommand, StepBackend stepBackend, StepEntity step);   }