use of org.springframework.cloud.servicebroker.model.instance.UpdateServiceInstanceRequest in project spring-cloud-open-service-broker by spring-cloud.
the class ServiceInstanceControllerRequestTest method updateServiceInstanceWithInvalidServiceDefinitionIdThrowsException.
@Test
void updateServiceInstanceWithInvalidServiceDefinitionIdThrowsException() {
UpdateServiceInstanceRequest updateRequest = UpdateServiceInstanceRequest.builder().serviceDefinitionId("unknown-service-definition-id").build();
ServiceInstanceController controller = createControllerUnderTest();
assertThrows(ServiceDefinitionDoesNotExistException.class, () -> controller.updateServiceInstance(pathVariables, null, false, null, null, null, updateRequest).block());
}
Aggregations