use of org.springframework.cloud.servicebroker.exception.ServiceBrokerOperationInProgressException in project spring-cloud-open-service-broker by spring-cloud.
the class ServiceInstanceBindingControllerIntegrationTest method getBindingWithOperationInProgressFails.
@Test
void getBindingWithOperationInProgressFails() {
given(serviceInstanceBindingService.getServiceInstanceBinding(any(GetServiceInstanceBindingRequest.class))).willThrow(new ServiceBrokerOperationInProgressException("task_10"));
client.get().uri(buildCreateUrl()).accept(MediaType.APPLICATION_JSON).exchange().expectStatus().isNotFound();
}
Aggregations