@Test void testPurge() { MtaConfigurationPurger purger = new MtaConfigurationPurger(client, configurationEntryService, configurationSubscriptionService, new MtaMetadataParser(new MtaMetadataValidator())); purger.purge("org", "space"); verifyConfigurationEntriesDeleted(); verifyConfigurationEntriesNotDeleted(); Mockito.verify(auditLoggingFacade) .logConfigDelete(ENTRY_TO_DELETE); Mockito.verify(auditLoggingFacade) .logConfigDelete(SUBSCRIPTION_TO_DELETE); }
public void purge(String org, String space) { CloudTarget targetSpace = new CloudTarget(org, space); String targetId = new ClientHelper(client).computeSpaceId(org, space); List<CloudApplication> existingApps = getExistingApps(); purgeConfigurationSubscriptions(targetId, existingApps); purgeConfigurationEntries(targetSpace, existingApps); }
MtaConfigurationPurger { public void purge(String org, String space) { CloudTarget targetSpace = new CloudTarget(org, space); String targetId = new ClientHelper(client).computeSpaceId(org, space); List<CloudApplication> existingApps = getExistingApps(); purgeConfigurationSubscriptions(targetId, existingApps); purgeConfigurationEntries(targetSpace, existingApps); } }
MtaConfigurationPurger { public void purge(String org, String space) { CloudTarget targetSpace = new CloudTarget(org, space); String targetId = new ClientHelper(client).computeSpaceId(org, space); List<CloudApplication> existingApps = getExistingApps(); purgeConfigurationSubscriptions(targetId, existingApps); purgeConfigurationEntries(targetSpace, existingApps); } MtaConfigurationPurger(CloudControllerClient client, ConfigurationEntryService configurationEntryService,
                                  ConfigurationSubscriptionService configurationSubscriptionService, MtaMetadataParser mtaMetadataParser); }
MtaConfigurationPurger { public void purge(String org, String space) { CloudTarget targetSpace = new CloudTarget(org, space); String targetId = new ClientHelper(client).computeSpaceId(org, space); List<CloudApplication> existingApps = getExistingApps(); purgeConfigurationSubscriptions(targetId, existingApps); purgeConfigurationEntries(targetSpace, existingApps); } MtaConfigurationPurger(CloudControllerClient client, ConfigurationEntryService configurationEntryService,
                                  ConfigurationSubscriptionService configurationSubscriptionService, MtaMetadataParser mtaMetadataParser); void purge(String org, String space); }
MtaConfigurationPurger { public void purge(String org, String space) { CloudTarget targetSpace = new CloudTarget(org, space); String targetId = new ClientHelper(client).computeSpaceId(org, space); List<CloudApplication> existingApps = getExistingApps(); purgeConfigurationSubscriptions(targetId, existingApps); purgeConfigurationEntries(targetSpace, existingApps); } MtaConfigurationPurger(CloudControllerClient client, ConfigurationEntryService configurationEntryService,
                                  ConfigurationSubscriptionService configurationSubscriptionService, MtaMetadataParser mtaMetadataParser); void purge(String org, String space);  }