@@ -49,9 +49,7 @@ public void beforeMethod(Method method) {
4949 public void afterMethod (ITestResult result ) {
5050 super .afterMethod (result );
5151 }
52-
5352
54-
5553 @ Test
5654 public void testNginxDockerfileBuilder () {
5755 File baseDir = new File (Thread .currentThread ().getContextClassLoader ()
@@ -69,8 +67,7 @@ public void testNginxDockerfileBuilder() {
6967 .inspectImageCmd (imageId ).exec ();
7068 assertThat (inspectImageResponse , not (nullValue ()));
7169 LOG .info ("Image Inspect: {}" , inspectImageResponse .toString ());
72- //tmpImgs.add(inspectImageResponse.getId());
73-
70+
7471 assertThat (inspectImageResponse .getAuthor (),
7572 equalTo (
"Guillaume J. Charmes \" [email protected] \" " ));
7673 }
@@ -120,8 +117,6 @@ private String dockerfileBuild(File baseDir, String expectedText) {
120117 dockerClient .startContainerCmd (container .getId ()).exec ();
121118 dockerClient .waitContainerCmd (container .getId ()).exec ();
122119
123- //tmpContainers.add(container.getId());
124-
125120 // Log container
126121 InputStream logResponse = logContainer (container
127122 .getId ());
@@ -155,14 +150,12 @@ public void testNetCatDockerfileBuilder() throws InterruptedException {
155150 assertThat (inspectImageResponse , not (nullValue ()));
156151 assertThat (inspectImageResponse .getId (), not (nullValue ()));
157152 LOG .info ("Image Inspect: {}" , inspectImageResponse .toString ());
158- //tmpImgs.add(inspectImageResponse.getId());
159-
153+
160154 CreateContainerResponse container = dockerClient .createContainerCmd (
161155 inspectImageResponse .getId ()).exec ();
162156 assertThat (container .getId (), not (isEmptyString ()));
163157 dockerClient .startContainerCmd (container .getId ()).exec ();
164- //tmpContainers.add(container.getId());
165-
158+
166159 InspectContainerResponse inspectContainerResponse = dockerClient
167160 .inspectContainerCmd (container .getId ()).exec ();
168161
0 commit comments