@Test public void shouldUpdateStatusOnPrepare() { RedbeamsEvent event = new RedbeamsEvent(RESOURCE_ID); victim.prepareExecution(event, null); verify(dbStackStatusUpdater).updateStatus(RESOURCE_ID, DetailedDBStackStatus.STOP_IN_PROGRESS); }
@Override protected void prepareExecution(RedbeamsEvent payload, Map<Object, Object> variables) { dbStackStatusUpdater.updateStatus(payload.getResourceId(), DetailedDBStackStatus.STOP_IN_PROGRESS); }
StopDatabaseServerAction extends AbstractRedbeamsStopAction<RedbeamsEvent> { @Override protected void prepareExecution(RedbeamsEvent payload, Map<Object, Object> variables) { dbStackStatusUpdater.updateStatus(payload.getResourceId(), DetailedDBStackStatus.STOP_IN_PROGRESS); } }
StopDatabaseServerAction extends AbstractRedbeamsStopAction<RedbeamsEvent> { @Override protected void prepareExecution(RedbeamsEvent payload, Map<Object, Object> variables) { dbStackStatusUpdater.updateStatus(payload.getResourceId(), DetailedDBStackStatus.STOP_IN_PROGRESS); } StopDatabaseServerAction(); }
StopDatabaseServerAction extends AbstractRedbeamsStopAction<RedbeamsEvent> { @Override protected void prepareExecution(RedbeamsEvent payload, Map<Object, Object> variables) { dbStackStatusUpdater.updateStatus(payload.getResourceId(), DetailedDBStackStatus.STOP_IN_PROGRESS); } StopDatabaseServerAction();  }
StopDatabaseServerAction extends AbstractRedbeamsStopAction<RedbeamsEvent> { @Override protected void prepareExecution(RedbeamsEvent payload, Map<Object, Object> variables) { dbStackStatusUpdater.updateStatus(payload.getResourceId(), DetailedDBStackStatus.STOP_IN_PROGRESS); } StopDatabaseServerAction();   }