File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
core/src/test/java/org/testcontainers/junit Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 2222/**
2323 * Created by rnorth on 11/06/2016.
2424 */
25- public class DockerComposeOverrideTest {
25+ public class DockerComposeLocalOverrideTest {
2626
2727 private static final int SERVICE_PORT = 3000 ;
2828 private static final String SERVICE_NAME = "alpine_1" ;
2929
3030 @ Rule
3131 public DockerComposeContainer compose =
3232 new DockerComposeContainer (
33- new File (this .getClass ().getResource ("docker-compose-base.yml" ).toURI ()),
34- new File (this .getClass ().getResource ("docker-compose-non-default-override.yml" ).toURI ()))
35- .withExposedService (SERVICE_NAME , SERVICE_PORT );
36-
37- public DockerComposeOverrideTest () throws URISyntaxException {}
33+ new File ("src/test/resources/docker-compose-base.yml" ),
34+ new File ("src/test/resources/docker-compose-non-default-override.yml" ))
35+ .withExposedService (SERVICE_NAME , SERVICE_PORT )
36+ .withLocalCompose (true );
3837
3938 @ BeforeClass
4039 public static void checkVersion () {
4140 Assume .assumeTrue (TestEnvironment .dockerApiAtLeast ("1.22" ));
4241 }
4342
44-
4543 @ Test (timeout = 30_000 )
4644 public void testEnvVar () {
4745 BufferedReader reader = Unreliables .retryUntilSuccess (10 , TimeUnit .SECONDS , () -> {
You can’t perform that action at this time.
0 commit comments