users@jersey.java.net

[Jersey] PATCH support in Jersey Test Framework?

From: Jeremy Johnson <jeremy.johnson_at_imtc.gatech.edu>
Date: Mon, 26 Mar 2012 12:40:08 -0400

Hi folks,

I'm trying to use the Jersey Test Framework v. 1.12 to test a web service that makes use of HTTP PATCH.

I tried calling WebResource.Builder.method( "PATCH", ...) but received the following exception:

com.sun.jersey.api.client.ClientHandlerException: java.net.ProtocolException: Invalid HTTP method: PATCH

Is there a simple solution for getting the Test Framework to play nicely with PATCH?

Thanks,
Jeremy