use of com.nike.riposte.server.http.impl.RequestInfoImpl in project riposte by Nike-Inc.
the class BackstopperRiposteFrameworkErrorHandlerListenerTest method shouldHandleRequestContentDeserializationException.
@Test
public void shouldHandleRequestContentDeserializationException() {
RequestInfo requestInfo = new RequestInfoImpl(null, HttpMethod.PATCH, null, null, null, null, null, null, null, false, true, false);
verifyExceptionHandled(new RequestContentDeserializationException("intentional boom", null, requestInfo, new TypeReference<Object>() {
}), singletonError(testProjectApiErrors.getMalformedRequestApiError()));
}
Aggregations