> + server.shutdown();
> + }
> + }
> +
> + public void testStartNonExistingContainer() throws Exception {
> + MockWebServer server = mockWebServer();
> + server.enqueue(new MockResponse().setResponseCode(204));
> + DockerApi api = api(server.getUrl("/"));
> + RemoteApi remoteApi = api.getRemoteApi();
> + try {
> + try {
> + remoteApi.startContainer("1");
> + } catch (ResourceNotFoundException ex) {
> + // Expected exception
> + }
> + assertRequestHasCommonFields(server.takeRequest(), "POST",
> "/containers/1/start");
Move this to the catch block, and add a explicit `fail` after calling the api
method.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/57/files#r12938183