@Test public void testMarkAsStarted() throws Exception { TestStepCommand command = new TestStepCommand(taskCommand, stepBackend, step); command.markAsStarted(); StepEntity stepEntity = stepBackend.getStepByTaskIdAndOperation( step.getTask().getId(), step.getOperation()); assertThat(stepEntity.getState(), is(StepEntity.State.STARTED)); assertThat(stepEntity.getEndTime(), is(nullValue())); }
@Override protected void markAsStarted() throws TaskNotFoundException { stepBackend.markStepAsStarted(step); }
StepCommand extends BaseCommand { @Override protected void markAsStarted() throws TaskNotFoundException { stepBackend.markStepAsStarted(step); } }
StepCommand extends BaseCommand { @Override protected void markAsStarted() throws TaskNotFoundException { stepBackend.markStepAsStarted(step); } protected  StepCommand(TaskCommand taskCommand, StepBackend stepBackend, StepEntity step); }
StepCommand extends BaseCommand { @Override protected void markAsStarted() throws TaskNotFoundException { stepBackend.markStepAsStarted(step); } protected  StepCommand(TaskCommand taskCommand, StepBackend stepBackend, StepEntity step);  }
StepCommand extends BaseCommand { @Override protected void markAsStarted() throws TaskNotFoundException { stepBackend.markStepAsStarted(step); } protected  StepCommand(TaskCommand taskCommand, StepBackend stepBackend, StepEntity step);   }