> + remoteApi.removeContainer(containerId);
> + assertRequestHasCommonFields(server.takeRequest(), "DELETE",
> "/containers/"+containerId);
> + } finally {
> + api.close();
> + server.shutdown();
> + }
> + }
> +
> + public void testRemoveNonExistingContainer() throws Exception {
> + MockWebServer server = mockWebServer();
> + server.enqueue(new MockResponse().setResponseCode(404));
> + DockerApi api = api(server.getUrl("/"));
> + RemoteApi remoteApi = api.getRemoteApi();
> + String containerId = "nonExisting";
> + try {
> + remoteApi.removeContainer(containerId);
Add a `fail` to fail the test if the `removeContainer` does not throw the
exception.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12938164