use of org.glassfish.jersey.internal.MapPropertiesDelegate in project jersey by jersey.
the class ClientRequestTest method mockThrowing.
private ClientRequest mockThrowing(Exception exception) throws IOException {
JerseyClient client = new JerseyClientBuilder().build();
final ClientRequest request = new ClientRequest(URI.create("http://example.org"), client.getConfiguration(), new MapPropertiesDelegate());
Mockito.doThrow(exception).when(workers).writeTo(any(), same(entityType.getRawType()), same(entityType.getType()), Mockito.<Annotation[]>any(), Mockito.<MediaType>any(), Mockito.<MultivaluedMap<String, Object>>any(), Mockito.<PropertiesDelegate>any(), Mockito.<OutputStream>any(), Mockito.<Iterable<WriterInterceptor>>any());
return request;
}
Aggregations