/usr/lib/jvm/java-8-oracle/bin/java -Dmaven.multiModuleProjectDirectory=/home/peter/git/testcontainers-java-examples/spring-boot -Dmaven.home=/opt/idea-IC/plugins/maven/lib/maven3 -Dclassworlds.conf=/opt/idea-IC/plugins/maven/lib/maven3/bin/m2.conf -Didea.launcher.port=7533 -Didea.launcher.bin.path=/opt/idea-IC/bin -Dfile.encoding=UTF-8 -classpath /opt/idea-IC/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar:/opt/idea-IC/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.3.4 test [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building spring-boot NOVERSION [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring-boot --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/peter/git/testcontainers-java-examples/spring-boot/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spring-boot --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ spring-boot --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ spring-boot --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 2 source files to /home/peter/git/testcontainers-java-examples/spring-boot/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ spring-boot --- [INFO] Surefire report directory: /home/peter/git/testcontainers-java-examples/spring-boot/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running com.example.DemoApplicationTest 2017-02-17 18:47:18.298 INFO --- [ main] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.example.AbstractIntegrationTest]: no resource found for suffixes {-context.xml, Context.groovy}. 2017-02-17 18:47:18.316 INFO --- [ main] WebAppIntegrationTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] 2017-02-17 18:47:18.327 INFO --- [ main] WebAppIntegrationTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@6e38921c, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@64d7f7e0, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@27c6e487, org.springframework.test.context.support.DirtiesContextTestExecutionListener@49070868, org.springframework.test.context.transaction.TransactionalTestExecutionListener@6385cb26, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@38364841] 2017-02-17 18:47:18.776 INFO --- [ main] o.t.d.DockerClientProviderStrategy : Found docker client settings from environment 2017-02-17 18:47:18.798 INFO --- [ main] o.t.d.DockerClientProviderStrategy : Looking for Docker environment. Tried Environment variables, system properties and defaults. Resolved: dockerHost=unix:///var/run/docker.sock apiVersion='{UNKNOWN_VERSION}' registryUrl='https://index.docker.io/v1/' registryUsername='peter' registryPassword='null' registryEmail='null' dockerConfig='DefaultDockerClientConfig[dockerHost=unix:///var/run/docker.sock,registryUsername=peter,registryPassword=,registryEmail=,registryUrl=https://index.docker.io/v1/,dockerConfig=/home/peter/.docker,sslConfig=,apiVersion={UNKNOWN_VERSION}]' 2017-02-17 18:47:18.807 INFO --- [ main] org.testcontainers.DockerClientFactory : Docker host IP address is localhost 2017-02-17 18:47:19.135 INFO --- [ main] org.testcontainers.DockerClientFactory : Connected to docker: Server Version: 1.13.1 API Version: 1.26 Operating System: Ubuntu 16.04.2 LTS Total Memory: 3951 MB Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.202 sec <<< FAILURE! com.example.DemoApplicationTest Time elapsed: 1.201 sec <<< ERROR! java.lang.ExceptionInInitializerError at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:156) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:1088) at java.lang.reflect.Field.getFieldAccessor(Field.java:1069) at java.lang.reflect.Field.get(Field.java:393) at org.junit.runners.model.FrameworkField.get(FrameworkField.java:73) at org.junit.runners.model.TestClass.getAnnotatedFieldValues(TestClass.java:230) at org.junit.runners.ParentRunner.classRules(ParentRunner.java:255) at org.junit.runners.ParentRunner.withClassRules(ParentRunner.java:244) at org.junit.runners.ParentRunner.classBlock(ParentRunner.java:194) at org.junit.runners.ParentRunner.run(ParentRunner.java:362) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: org.testcontainers.shaded.com.github.dockerjava.api.exception.DockerClientException: Failed to parse dockerCfgFile at org.testcontainers.shaded.com.github.dockerjava.core.DefaultDockerClientConfig.effectiveAuthConfig(DefaultDockerClientConfig.java:268) at org.testcontainers.shaded.com.github.dockerjava.core.DockerClientImpl.pullImageCmd(DockerClientImpl.java:215) at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:103) at org.testcontainers.containers.GenericContainer.(GenericContainer.java:113) at com.example.AbstractIntegrationTest.(AbstractIntegrationTest.java:20) ... 25 more Caused by: java.io.IOException: Invalid Auth config file at org.testcontainers.shaded.com.github.dockerjava.core.AuthConfigFile.loadConfig(AuthConfigFile.java:146) at org.testcontainers.shaded.com.github.dockerjava.core.DefaultDockerClientConfig.effectiveAuthConfig(DefaultDockerClientConfig.java:266) ... 29 more Results : Tests in error: com.example.DemoApplicationTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.142 s [INFO] Finished at: 2017-02-17T18:47:19+09:00 [INFO] Final Memory: 29M/273M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project spring-boot: There are test failures. [ERROR] [ERROR] Please refer to /home/peter/git/testcontainers-java-examples/spring-boot/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Process finished with exit code 1