jersey-test-framework Questions

3

I'm trying to handle a request with no Accept header in a particular way, but Jersey seems hell-bent on filling one in, no matter what I do, so it always looks like the request has an Accept header...
Centralize asked 1/12, 2016 at 0:54

3

Solved

I have an interesting JUnit problem here (JUnit 4.12). I have a base class that only has static methods. They have to be static, because of the way they're used. I inherit other classes from the ba...
Taegu asked 24/10, 2017 at 15:26

2

I am working on fixing the integration tests in one of the projects. Currently, all the integration test classes extend the JerseyTest class. Going through the JerseyTest class I realized that it s...
Harrington asked 22/7, 2016 at 10:54

1

Solved

I want to test my REST service with: <dependency> <groupId>com.sun.jersey.jersey-test-framework</groupId> <artifactId>jersey-test-framework-grizzly2</artifactId> &...
Scrapple asked 22/6, 2016 at 10:37

1

Solved

I have REST web service which I test with Jersey Test, Mockito, Junit. When web service method is executed successfully, I get correct response. In case of invalid data, custom exception is thrown ...

1

Solved

I'm trying to create a test for a POST method in a resource class in a Jersey program. Here's the POST method of the resource: @POST @Path("/new") @Consumes(MediaType.MULTIPART_FORM_DATA) public ...

1

Solved

I have a resource for rest API which uses a service. This service has a constructor with parameters. I want to test this resource and to mock this service. This Question: How to pass parameters to...
Astonishment asked 19/1, 2016 at 22:57

1

Solved

I am trying to get a JerseyTest running using a org.glassfish.jersey.test.grizzly.GrizzlyWebContainerFactory. I already searched the internet and tried several things for the better part of a day. ...
Paquette asked 5/11, 2014 at 7:33
1

© 2022 - 2024 — McMap. All rights reserved.