use of com.quorum.tessera.transaction.exception.TransactionNotFoundException in project tessera by ConsenSys.
the class TransactionNotFoundExceptionMapperTest method toResponse.
@Test
public void toResponse() {
final TransactionNotFoundException transactionNotFoundException = new TransactionNotFoundException("OUCH");
final Response result = instance.toResponse(transactionNotFoundException);
assertThat(result).isNotNull();
final String message = result.getEntity().toString();
assertThat(message).isEqualTo("OUCH");
assertThat(result.getStatus()).isEqualTo(404);
}
Aggregations