use of org.springframework.cloud.servicebroker.model.binding.CreateServiceInstanceBindingRequest in project spring-cloud-open-service-broker by spring-cloud.
the class ServiceInstanceBindingControllerRequestTest method createServiceBindingWithInvalidServiceDefinitionIdThrowsException.
@Test
void createServiceBindingWithInvalidServiceDefinitionIdThrowsException() {
CreateServiceInstanceBindingRequest createRequest = CreateServiceInstanceBindingRequest.builder().serviceDefinitionId("unknown-service-definition-id").build();
ServiceInstanceBindingController controller = createControllerUnderTest();
assertThrows(ServiceDefinitionDoesNotExistException.class, () -> controller.createServiceInstanceBinding(pathVariables, null, null, false, null, null, null, createRequest).block());
}
Aggregations