@Override void setUpArgs(final ClientRequestConfigurer clientRequestConfigurer, final JsonRepresentation requestArgs) { clientRequestConfigurer.body(requestArgs); } };
private void setsUpBody(final RestfulHttpMethod httpMethod) throws UnsupportedEncodingException { context.checking(new Expectations() { { one(requestConfigurer).setHttpMethod(httpMethod); one(requestConfigurer).body(repr); } }); httpMethod.setUpArgs(requestConfigurer, repr); }
private void setsUpBody(final RestfulHttpMethod httpMethod) throws UnsupportedEncodingException { context.checking(new Expectations() { { one(requestConfigurer).setHttpMethod(httpMethod); one(requestConfigurer).body(repr); } }); httpMethod.setUpArgs(requestConfigurer, repr); }