@Test public void testUpdateStatus() { dbStack.setDBStackStatus(new DBStackStatus(dbStack, DetailedDBStackStatus.CREATING_INFRASTRUCTURE, now)); DBStack savedStack = underTest.updateStatus(1L, DetailedDBStackStatus.PROVISIONED, "because").get(); verify(dbStackService).save(dbStack); verify(redbeamsInMemoryStateStoreUpdaterService).update(1L, Status.AVAILABLE); DBStackStatus dbStackStatus = savedStack.getDbStackStatus(); assertEquals(dbStack, dbStackStatus.getDBStack()); assertEquals(DetailedDBStackStatus.PROVISIONED.getStatus(), dbStackStatus.getStatus()); assertEquals("because", dbStackStatus.getStatusReason()); assertEquals(DetailedDBStackStatus.PROVISIONED, dbStackStatus.getDetailedDBStackStatus()); assertEquals(now, dbStackStatus.getCreated().longValue()); }
public Optional<DBStack> updateStatus(Long dbStackId, DetailedDBStackStatus detailedStatus) { return updateStatus(dbStackId, detailedStatus, ""); }
DBStackStatusUpdater { public Optional<DBStack> updateStatus(Long dbStackId, DetailedDBStackStatus detailedStatus) { return updateStatus(dbStackId, detailedStatus, ""); } }
DBStackStatusUpdater { public Optional<DBStack> updateStatus(Long dbStackId, DetailedDBStackStatus detailedStatus) { return updateStatus(dbStackId, detailedStatus, ""); }  }
DBStackStatusUpdater { public Optional<DBStack> updateStatus(Long dbStackId, DetailedDBStackStatus detailedStatus) { return updateStatus(dbStackId, detailedStatus, ""); }  Optional<DBStack> updateStatus(Long dbStackId, DetailedDBStackStatus detailedStatus); Optional<DBStack> updateStatus(Long dbStackId, DetailedDBStackStatus detailedStatus, String statusReason); }
DBStackStatusUpdater { public Optional<DBStack> updateStatus(Long dbStackId, DetailedDBStackStatus detailedStatus) { return updateStatus(dbStackId, detailedStatus, ""); }  Optional<DBStack> updateStatus(Long dbStackId, DetailedDBStackStatus detailedStatus); Optional<DBStack> updateStatus(Long dbStackId, DetailedDBStackStatus detailedStatus, String statusReason);  }