users@jersey.java.net

[Jersey] Generic ClientResponse getEntity

From: Robert DiFalco <robert.difalco_at_gmail.com>
Date: Fri, 13 Dec 2013 15:36:42 -0800

In Jersey 2.0 what do I replace this client call with for my unit tests?

   rsp = get( ..., ClientResponse.class );
   assertEquals( Response.Status.OK, rsp.getStatusInfo() );
   Person p = rsp.getEntity( Person.class );

I'm not sure how to deserialize the response stream to a Person type in
Jersey 2.4.1.

Thanks