> +      assertNotNull(list);
> +      assertEquals(list.size(), 1);
> +      assertEquals(list.get(0).properties().name(), "apache-firewall");
> +      
> +      assertEquals(server.getRequestCount(), 1);
> +      assertSent(server, "GET", 
> "/datacenters/datacenter-id/servers/server-id/nics/nic-id/firewallrules?depth=3");
> +   }
> +   
> +   @Test
> +   public void testGetRuleListWith404() throws InterruptedException {
> +      server.enqueue(response404());
> +      List<FirewallRule> list = firewallApi().list("datacenter-id", 
> "server-id", "nic-id", new DepthOptions().depth(1));
> +      assertTrue(list.isEmpty());
> +      assertEquals(server.getRequestCount(), 1);
> +      assertSent(server, "GET", 
> "/datacenters/datacenter-id/servers/server-id/nics/nic-id/firewallrules?depth=1");
> +   }

* Change the name to reflect that this tests the "withDepth" method.
* Still missing a test that verifies the list without depth and 404.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/255/files/958590fa1cb0101355e6cfee1893c43112c09253#r59632353

Reply via email to