Search in sources :

Example 1 with PrivacyGroupNotFoundException

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);
}
Also used : Response(jakarta.ws.rs.core.Response) PrivacyGroupNotFoundException(com.quorum.tessera.privacygroup.exception.PrivacyGroupNotFoundException) Test(org.junit.Test)

Aggregations

PrivacyGroupNotFoundException (com.quorum.tessera.privacygroup.exception.PrivacyGroupNotFoundException)1 Response (jakarta.ws.rs.core.Response)1 Test (org.junit.Test)1