Skip to content

Commit

Permalink
fix some code
Browse files Browse the repository at this point in the history
  • Loading branch information
laglangyue committed Oct 26, 2022
1 parent e1b57a3 commit 7015416
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 98 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.testcontainers.containers.Container;
import org.testcontainers.containers.Db2Container;
import org.testcontainers.containers.output.Slf4jLogConsumer;
import org.testcontainers.utility.DockerLoggerFactory;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -85,7 +86,7 @@ public void startUp() throws Exception {
.withDatabaseName(DATABASE)
.withUsername(USER)
.withPassword(PASSWORD)
.withLogConsumer(new Slf4jLogConsumer(LOG))
.withLogConsumer(new Slf4jLogConsumer(DockerLoggerFactory.getLogger(IMAGE)))
.acceptLicense();
db2.setPortBindings(Lists.newArrayList(String.format("%s:%s", LOCAL_PORT, PORT)));
jdbcUrl = String.format("jdbc:db2://%s:%s/%s", db2.getHost(), LOCAL_PORT, DATABASE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
</dependency>

<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>db2</artifactId>
<version>1.17.3</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>

This file was deleted.

0 comments on commit 7015416

Please sign in to comment.