> +
> + @Test
> + public void testGetList() throws InterruptedException {
> + server.enqueue(
> + new MockResponse().setBody(stringFromResource("/server/list.json"))
> + );
> +
> + List<Server> list = serverApi().getList("datacenter-id");
> +
> + assertNotNull(list);
> + assertEquals(list.size(), 5);
> + assertEquals(list.get(0).properties().name(), "docker001");
> +
> + assertEquals(server.getRequestCount(), 1);
> + assertSent(server, "GET", "/datacenters/datacenter-id/servers");
> + }
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#r51543054