> +      assertEquals(list.size(), 3);
> +      assertEquals(list.get(0).properties().name(), "test snapshot");
> +      
> +      assertEquals(server.getRequestCount(), 1);
> +      assertSent(server, "GET", "/snapshots?depth=5");
> +   }
> +   
> +   
> +   @Test
> +   public void testGetListWith404() throws InterruptedException {
> +      server.enqueue(response404());
> +      List<Snapshot> list = snapshotApi().getList(new 
> DepthOptions().depth(1));
> +      assertTrue(list.isEmpty());
> +      assertEquals(server.getRequestCount(), 1);
> +      assertSent(server, "GET", "/snapshots?depth=1");
> +   }

Add a test for the 404 fallback for the other `getList` too.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/244/files#r55018225

Reply via email to