> + @Test
> + public void testGetServer() throws InterruptedException {
> + MockResponse response = new MockResponse();
> + response.setBody(stringFromResource("/server/get.json"));
> + response.setHeader("Content-Type",
> "application/vnd.profitbricks.resource+json");
> +
> + server.enqueue(response);
> +
> + Server server = serverApi().getServer("datacenter-id", "some-id");
> +
> + assertNotNull(server);
> + assertEquals(server.properties().name(), "docker001");
> +
> + assertEquals(this.server.getRequestCount(), 1);
> + assertSent(this.server, "GET",
> "/datacenters/datacenter-id/servers/some-id");
> + }
Add a test that exercises the method that gets the depth options.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/227/files#r51543062