use of com.quorum.tessera.privacygroup.exception.PrivacyGroupNotFoundException in project tessera by ConsenSys.
the class PrivacyGroupNotFoundExceptionMapperTest method handleException.
@Test
public void handleException() {
final String message = ".. all outta gum";
final PrivacyGroupNotFoundException exception = new PrivacyGroupNotFoundException(message);
final Response result = mapper.toResponse(exception);
assertThat(result.getStatus()).isEqualTo(404);
assertThat(result.getEntity()).isEqualTo(message);
}
Aggregations