> + mr.setResponseCode(responseCode);
> + mr.addHeader(GlacierHeaders.REQUEST_ID, REQUEST_ID);
> + mr.addHeader(HttpHeaders.DATE, DATE);
> + return mr;
> + }
> +
> + private static String getResponseBody(String path) throws IOException {
> + return ByteSources
> +
> .asByteSource(GlacierClientMockTest.class.getResourceAsStream(path))
> + .asCharSource(UTF_8)
> + .read();
> + }
> +
> + @BeforeTest
> + private void initServer() throws IOException {
> + server = new MockWebServer();
> server.play();
Is it OK to play before enqueuing the response?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/17/files#r13947580