@Test void testTerminateByName() { when(databaseServerConfigService.getByName(anyLong(), eq(ENVIRONMENT_CRN), eq(DATABASE_SERVER_NAME))).thenReturn(server); mockTerminationByCrn(SERVER_CRN_STRING, dbStack, server); DatabaseServerConfig terminatingServer = underTest.terminateByName(ENVIRONMENT_CRN, DATABASE_SERVER_NAME, true); assertEquals(server, terminatingServer); verifyTermination(1L); }
public DatabaseServerConfig terminateByName(String environmentCrn, String name, boolean force) { return terminate(databaseServerConfigService.getByName(DEFAULT_WORKSPACE, environmentCrn, name), force); }
RedbeamsTerminationService { public DatabaseServerConfig terminateByName(String environmentCrn, String name, boolean force) { return terminate(databaseServerConfigService.getByName(DEFAULT_WORKSPACE, environmentCrn, name), force); } }
RedbeamsTerminationService { public DatabaseServerConfig terminateByName(String environmentCrn, String name, boolean force) { return terminate(databaseServerConfigService.getByName(DEFAULT_WORKSPACE, environmentCrn, name), force); }  }
RedbeamsTerminationService { public DatabaseServerConfig terminateByName(String environmentCrn, String name, boolean force) { return terminate(databaseServerConfigService.getByName(DEFAULT_WORKSPACE, environmentCrn, name), force); }  DatabaseServerConfig terminateByCrn(String crn, boolean force); DatabaseServerConfig terminateByName(String environmentCrn, String name, boolean force); Set<DatabaseServerConfig> terminateMultipleByCrn(Set<String> crns, boolean force); }
RedbeamsTerminationService { public DatabaseServerConfig terminateByName(String environmentCrn, String name, boolean force) { return terminate(databaseServerConfigService.getByName(DEFAULT_WORKSPACE, environmentCrn, name), force); }  DatabaseServerConfig terminateByCrn(String crn, boolean force); DatabaseServerConfig terminateByName(String environmentCrn, String name, boolean force); Set<DatabaseServerConfig> terminateMultipleByCrn(Set<String> crns, boolean force);  }