> +      try {
> +         remoteApi.stopContainer("1");
> +         assertRequestHasCommonFields(server.takeRequest(), "POST", 
> "/containers/1/stop");
> +      } finally {
> +         api.close();
> +         server.shutdown();
> +      }
> +   }
> +
> +   public void testStopNonExistingContainer() throws Exception {
> +      MockWebServer server = mockWebServer();
> +      server.enqueue(new MockResponse().setResponseCode(204));
> +      DockerApi api = api(server.getUrl("/"));
> +      RemoteApi remoteApi = api.getRemoteApi();
> +      try {
> +         remoteApi.stopContainer("1");

Same here. Add a `fail` to make the test fail here.

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

Reply via email to