vendredi 24 avril 2015

How to get instance of javax.ws.rs.core.UriInfo

Is there any implementation of javax.ws.rs.core.UriInfo which I can use to create an instance quickly for testing. This interface is long, I just need to test something. I don't want to waste time on whole implementation of this interface.

UPDATE: I want to write a unit test for a function similar to this:

@GET
@Path("/my_path")
@Produces(MediaType.TEXT_XML)
public String webserviceRequest(@Context UriInfo uriInfo);

Aucun commentaire:

Enregistrer un commentaire