> +   
> +   public void testDeleteRole() throws Exception {
> +      MockWebServer server = mockShipyardWebServer();
> +      server.enqueue(new MockResponse().setResponseCode(204));
> +      ShipyardApi shipyardApi = api(server.getUrl("/"));
> +      RolesApi api = shipyardApi.rolesApi();
> +      try {
> +         boolean removed = api.deleteRole("admin");
> +         assertTrue(removed);
> +         assertSent(server, "DELETE", "/api/roles", new 
> String(payloadFromResource("/role-delete-create.json")));
> +      } finally {
> +         shipyardApi.close();
> +         server.shutdown();
> +      }
> +   }
> +}

Add the mock tests that exercise the fallbacks.

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

Reply via email to