> +    * Ensures the request is json and has the same contents as the resource
> +    * file provided.
> +    * 
> +    * @param request
> +    * @param method
> +    *           The request method (such as GET).
> +    * @param resourceLocation
> +    *           The location of the resource file. Contents will be compared 
> to
> +    *           the request body as JSON.
> +    * @see RecordedRequest
> +    */
> +   public void assertRequest(RecordedRequest request, String method, String 
> path, String resourceLocation) {
> +      assertRequest(request, method, path);
> +      assertJsonRequest(request);
> +      JsonParser parser = new JsonParser();
> +      JsonElement requestJson = null, resourceJson; // to be compared

Please just write this as two lines.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/224/files#r8221598

Reply via email to