@Test void errorProcessingCloudEvent() { final Response response = Responses.errorProcessingCloudEvent(new IllegalArgumentException("Fail!")); assertThat(response).isNotNull(); assertThat(response.getStatus()).isEqualTo(Response.Status.BAD_REQUEST.getStatusCode()); assertThat(response.getEntity()).isInstanceOf(ResponseError.class); }
public static Response errorProcessingCloudEvent(Throwable cause) { return Response. status(Response.Status.BAD_REQUEST). entity(new ResponseError(ERROR_PROCESSING, cause)). build(); }
Responses { public static Response errorProcessingCloudEvent(Throwable cause) { return Response. status(Response.Status.BAD_REQUEST). entity(new ResponseError(ERROR_PROCESSING, cause)). build(); } }
Responses { public static Response errorProcessingCloudEvent(Throwable cause) { return Response. status(Response.Status.BAD_REQUEST). entity(new ResponseError(ERROR_PROCESSING, cause)). build(); } private  Responses(); }
Responses { public static Response errorProcessingCloudEvent(Throwable cause) { return Response. status(Response.Status.BAD_REQUEST). entity(new ResponseError(ERROR_PROCESSING, cause)). build(); } private  Responses(); static Response errorProcessingCloudEvent(Throwable cause); static Response channelNotBound(String channelName, CloudEvent cloudEvent); }
Responses { public static Response errorProcessingCloudEvent(Throwable cause) { return Response. status(Response.Status.BAD_REQUEST). entity(new ResponseError(ERROR_PROCESSING, cause)). build(); } private  Responses(); static Response errorProcessingCloudEvent(Throwable cause); static Response channelNotBound(String channelName, CloudEvent cloudEvent);  }