@Test void testUpdateServiceMetadata() { CloudServiceInstanceExtended serviceToProcess = buildServiceToProcess(); prepareServiceToProcess(serviceToProcess); prepareClient(serviceToProcess); step.execute(execution); verify(client).updateServiceInstanceMetadata(serviceToProcess.getMetadata() .getGuid(), serviceToProcess.getV3Metadata()); }
private MethodExecution<String> updateServiceMetadata(CloudControllerClient controllerClient, CloudServiceInstanceExtended service) { getStepLogger().debug(Messages.UPDATING_METADATA_OF_SERVICE_INSTANCE_0, service.getName(), service.getResourceName()); updateServiceMetadata(service, controllerClient); getStepLogger().debug(Messages.UPDATING_METADATA_OF_SERVICE_INSTANCE_0_DONE, service.getName()); return new MethodExecution<>(null, MethodExecution.ExecutionState.FINISHED); }
UpdateServiceMetadataStep extends ServiceStep { private MethodExecution<String> updateServiceMetadata(CloudControllerClient controllerClient, CloudServiceInstanceExtended service) { getStepLogger().debug(Messages.UPDATING_METADATA_OF_SERVICE_INSTANCE_0, service.getName(), service.getResourceName()); updateServiceMetadata(service, controllerClient); getStepLogger().debug(Messages.UPDATING_METADATA_OF_SERVICE_INSTANCE_0_DONE, service.getName()); return new MethodExecution<>(null, MethodExecution.ExecutionState.FINISHED); } }
UpdateServiceMetadataStep extends ServiceStep { private MethodExecution<String> updateServiceMetadata(CloudControllerClient controllerClient, CloudServiceInstanceExtended service) { getStepLogger().debug(Messages.UPDATING_METADATA_OF_SERVICE_INSTANCE_0, service.getName(), service.getResourceName()); updateServiceMetadata(service, controllerClient); getStepLogger().debug(Messages.UPDATING_METADATA_OF_SERVICE_INSTANCE_0_DONE, service.getName()); return new MethodExecution<>(null, MethodExecution.ExecutionState.FINISHED); }  }
UpdateServiceMetadataStep extends ServiceStep { private MethodExecution<String> updateServiceMetadata(CloudControllerClient controllerClient, CloudServiceInstanceExtended service) { getStepLogger().debug(Messages.UPDATING_METADATA_OF_SERVICE_INSTANCE_0, service.getName(), service.getResourceName()); updateServiceMetadata(service, controllerClient); getStepLogger().debug(Messages.UPDATING_METADATA_OF_SERVICE_INSTANCE_0_DONE, service.getName()); return new MethodExecution<>(null, MethodExecution.ExecutionState.FINISHED); }   }
UpdateServiceMetadataStep extends ServiceStep { private MethodExecution<String> updateServiceMetadata(CloudControllerClient controllerClient, CloudServiceInstanceExtended service) { getStepLogger().debug(Messages.UPDATING_METADATA_OF_SERVICE_INSTANCE_0, service.getName(), service.getResourceName()); updateServiceMetadata(service, controllerClient); getStepLogger().debug(Messages.UPDATING_METADATA_OF_SERVICE_INSTANCE_0_DONE, service.getName()); return new MethodExecution<>(null, MethodExecution.ExecutionState.FINISHED); }    }