>
> - HttpResponse listResponse = HttpResponse.builder().statusCode(204)
> - .addHeader("X-Account-Container-Count", "3")
> - .addHeader("X-Account-Bytes-Used", "323479").build();
> + try {
> + AccountApi accountApi = api.getAccountApiForRegion("DFW");
> +
> + assertEquals(accountApi.get(), mockAccount());
> +
> + assertEquals(server.takeRequest().getRequestLine(), "POST /tokens
> HTTP/1.1");
> + assertEquals(server.takeRequest().getRequestLine(), "HEAD
> /v1/MossoCloudFS_5bcf396e-39dd-45ff-93a1-712b9aba90a9/ HTTP/1.1");
> +
> + } finally {
Moving the try up in the methods. As I learn more about MockWebServer this code
may be refactored
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/17/files#r6251940