diff --git a/src/test/java/org/mandas/docker/client/DefaultDockerClientUnitTest.java b/src/test/java/org/mandas/docker/client/DefaultDockerClientUnitTest.java index d3acdc88..6896dbd5 100644 --- a/src/test/java/org/mandas/docker/client/DefaultDockerClientUnitTest.java +++ b/src/test/java/org/mandas/docker/client/DefaultDockerClientUnitTest.java @@ -200,7 +200,7 @@ public void testCustomHeaders() throws Exception { builder.header("string", "2"); builder.header("list", Arrays.asList("a", "b", "c")); - server.enqueue(new MockResponse()); + server.enqueue(new MockResponse().addHeader("Content-Type", "application/json")); final DefaultDockerClient dockerClient = builder.build(); dockerClient.info(); @@ -248,7 +248,7 @@ public void testGroupAdd() throws Exception { .hostConfig(hostConfig) .build(); - server.enqueue(new MockResponse()); + server.enqueue(new MockResponse().addHeader("Content-Type", "application/json")); dockerClient.createContainer(containerConfig); @@ -273,7 +273,7 @@ public void testCapAddAndDrop() throws Exception { .hostConfig(hostConfig) .build(); - server.enqueue(new MockResponse()); + server.enqueue(new MockResponse().addHeader("Content-Type", "application/json")); dockerClient.createContainer(containerConfig); @@ -371,7 +371,7 @@ public void testNanoCpus() throws Exception { .hostConfig(hostConfig) .build(); - server.enqueue(new MockResponse()); + server.enqueue(new MockResponse().addHeader("Content-Type", "application/json")); dockerClient.createContainer(containerConfig); @@ -1091,7 +1091,7 @@ public void testBindBuilderSelinuxLabeling() throws Exception { public void testKillContainer() throws Exception { final DefaultDockerClient dockerClient = builder.build(); - server.enqueue(new MockResponse()); + server.enqueue(new MockResponse().addHeader("Content-Type", "application/json")); final Signal signal = Signal.SIGHUP; dockerClient.killContainer("1234", signal); @@ -1142,7 +1142,7 @@ public void testBufferedRequestEntityProcessing() throws Exception { .hostConfig(hostConfig) .build(); - server.enqueue(new MockResponse()); + server.enqueue(new MockResponse().addHeader("Content-Type", "application/json")); dockerClient.createContainer(containerConfig); @@ -1165,7 +1165,7 @@ public void testChunkedRequestEntityProcessing() throws Exception { .hostConfig(hostConfig) .build(); - server.enqueue(new MockResponse()); + server.enqueue(new MockResponse().addHeader("Content-Type", "application/json")); dockerClient.createContainer(containerConfig);