> + requestJson = parser.parse(new String(request.getBody(),
> Charsets.UTF_8));
> + } catch (Exception e) {
> + throw Throwables.propagate(e);
> + }
> + JsonElement resourceJson =
> parser.parse(stringFromResource(resourceLocation));
> + assertThat(requestJson).isEqualTo(resourceJson);
> + }
> +
> + /**
> + * Ensures the request has a json header.
> + *
> + * @param request
> + * @see RecordedRequest
> + */
> + private void assertContentTypeIsJSON(RecordedRequest request) {
> + // TODO: where to add this? something is stripping it off
Done.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/270/files/08f67d68c03760ce134ccf217c3b1ee4487ac318#r64292620