use of org.springframework.cloud.servicebroker.exception.ServiceBrokerInvalidOriginatingIdentityException in project spring-cloud-open-service-broker by spring-cloud.
the class ServiceBrokerExceptionHandlerTest method serviceBrokerInvalidOriginatingIdentityException.
@Test
void serviceBrokerInvalidOriginatingIdentityException() {
ServiceBrokerInvalidOriginatingIdentityException exception = new ServiceBrokerInvalidOriginatingIdentityException("test message");
ErrorMessage errorMessage = exceptionHandler.handleException(exception);
assertThat(errorMessage.getError()).isNull();
assertThat(errorMessage.getMessage()).contains("test message");
}
Aggregations