File tree Expand file tree Collapse file tree
main/java/com/github/dockerjava/core/dockerfile
test/java/com/github/dockerjava/core/command Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,9 +157,7 @@ public void close() throws IOException {
157157
158158 @ Override
159159 public String toString () {
160- return Objects .toStringHelper (this )
161- .add ("ignores" , ignores )
162- .add ("filesToAdd" , filesToAdd ).toString ();
160+ return Objects .toStringHelper (this ).add ("ignores" , ignores ).add ("filesToAdd" , filesToAdd ).toString ();
163161 }
164162
165163 public ScannedResult () throws IOException {
Original file line number Diff line number Diff line change @@ -102,12 +102,10 @@ public void testDockerBuilderFromTar() throws Exception {
102102
103103 @ Test
104104 public void testDockerBuildWithOnBuild () throws Exception {
105- File baseDir = new File (Thread .currentThread ().getContextClassLoader ().getResource ("testAddOnBuild/onbuild" ).getFile ());
106- dockerClient .buildImageCmd (baseDir )
107- .withNoCache (true )
108- .withTag ("docker-java-onbuild" )
109- .exec (new BuildImageResultCallback ())
110- .awaitImageId ();
105+ File baseDir = new File (Thread .currentThread ().getContextClassLoader ().getResource ("testAddOnBuild/onbuild" )
106+ .getFile ());
107+ dockerClient .buildImageCmd (baseDir ).withNoCache (true ).withTag ("docker-java-onbuild" )
108+ .exec (new BuildImageResultCallback ()).awaitImageId ();
111109 baseDir = new File (Thread .currentThread ().getContextClassLoader ().getResource ("testAddOnBuild/test" ).getFile ());
112110 String response = dockerfileBuild (baseDir );
113111 assertThat (response , containsString ("Successfully executed testrun.sh" ));
You can’t perform that action at this time.
0 commit comments