playframework/Play20 — pull request #223 by cescoffier (2012-04-06 15:17:53+00:00)
Title: #310 - Added withJsonBody support to the FakeRequest

This pull request is just the aggregation of the commits discussed on https://github.com/playframework/Play20/pull/218.

It provides the fix for the ticket #310 - Added withJsonBody support to the FakeRequest.

----

Added the withJsonBody in FakeRequest.

This method is used to build fake requests sending a Json Body. In Java this method receives a JsonNode; in Scala the method receives a JSValue.

The method can be used with or without a method parameter. If not set, POST is used.