@Test public void controllerIsNotified_whenConditionHasBeenEvaluated() { final UserProcessController controller = mock(UserProcessController.class); final ConditionEvaluatedEvent event = new ConditionEvaluatedEvent(true); final ExecutionPauseContinueListener listener = new ExecutionPauseContinueListener(controller); listener.handleConditionEvaluated(event); verify(controller).conditionEvaluated(event); verifyNoMoreInteractions(controller); }
@Override public void handleConditionEvaluated(final ConditionEvaluatedEvent event) { controller.conditionEvaluated(event); }
ExecutionPauseContinueListener extends RobotDefaultAgentEventListener { @Override public void handleConditionEvaluated(final ConditionEvaluatedEvent event) { controller.conditionEvaluated(event); } }
ExecutionPauseContinueListener extends RobotDefaultAgentEventListener { @Override public void handleConditionEvaluated(final ConditionEvaluatedEvent event) { controller.conditionEvaluated(event); } ExecutionPauseContinueListener(final UserProcessController controller); }
ExecutionPauseContinueListener extends RobotDefaultAgentEventListener { @Override public void handleConditionEvaluated(final ConditionEvaluatedEvent event) { controller.conditionEvaluated(event); } ExecutionPauseContinueListener(final UserProcessController controller); @Override void handleKeywordAboutToEnd(final KeywordEndedEvent event); @Override void handleShouldContinue(final ShouldContinueEvent event); @Override void handlePaused(final PausedEvent event); @Override void handleConditionEvaluated(final ConditionEvaluatedEvent event); }
ExecutionPauseContinueListener extends RobotDefaultAgentEventListener { @Override public void handleConditionEvaluated(final ConditionEvaluatedEvent event) { controller.conditionEvaluated(event); } ExecutionPauseContinueListener(final UserProcessController controller); @Override void handleKeywordAboutToEnd(final KeywordEndedEvent event); @Override void handleShouldContinue(final ShouldContinueEvent event); @Override void handlePaused(final PausedEvent event); @Override void handleConditionEvaluated(final ConditionEvaluatedEvent event);  }