From 5b6fb633c847473dfe4f265aa7fe58a1d89fa32d Mon Sep 17 00:00:00 2001 From: Kanstantsin Shautsou Date: Fri, 11 Mar 2016 01:10:29 +0300 Subject: [PATCH] Fix typo in test --- .../github/dockerjava/client/DockerClientTest.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/github/dockerjava/client/DockerClientTest.java b/src/test/java/com/github/dockerjava/client/DockerClientTest.java index 72a09f0e5..b124fdc9a 100644 --- a/src/test/java/com/github/dockerjava/client/DockerClientTest.java +++ b/src/test/java/com/github/dockerjava/client/DockerClientTest.java @@ -50,20 +50,26 @@ public void afterMethod(ITestResult result) { @Test public void testRunShlex() throws DockerException { - String[] commands = new String[] {"true", + String[] commands = new String[] { + "true", "echo \"The Young Descendant of Tepes & Septette for the Dead Princess\"", "echo -n 'The Young Descendant of Tepes & Septette for the Dead Princess'", "/bin/sh -c echo Hello World", "/bin/sh -c echo 'Hello World'", "echo 'Night of Nights'", - "true && echo 'Night of Nights'"}; + "true && echo 'Night of Nights'" + }; for (String command : commands) { LOG.info("Running command: [{}]", command); - CreateContainerResponse container = dockerClient.createContainerCmd("busybox").withCmd(commands).exec(); + CreateContainerResponse container = dockerClient.createContainerCmd("busybox") + .withCmd(command) + .exec(); dockerClient.startContainerCmd(container.getId()); - int exitcode = dockerClient.waitContainerCmd(container.getId()).exec(new WaitContainerResultCallback()) + int exitcode = dockerClient.waitContainerCmd(container.getId()) + .exec(new WaitContainerResultCallback()) .awaitStatusCode(); + assertThat(exitcode, equalTo(0)); } }