use of com.quorum.tessera.enclave.EnclaveNotAvailableException in project tessera by ConsenSys.
the class EnclaveNotAvailableExceptionMapperTest method toResponse.
@Test
public void toResponse() {
final EnclaveNotAvailableException exception = new EnclaveNotAvailableException("Enclave error");
final Response result = instance.toResponse(exception);
assertThat(result).isNotNull();
assertThat(result.getStatus()).isEqualTo(503);
assertThat(result.getEntity()).isEqualTo(exception.getMessage());
}
Aggregations