Skip to content

Commit 874dc55

Browse files
committed
Update for testcontainers V2
1 parent b6832c1 commit 874dc55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/examples/window_functions/WindowFunctionsTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
import org.mybatis.dynamic.sql.select.aggregate.WindowDSL;
4646
import org.mybatis.dynamic.sql.select.render.SelectStatementProvider;
4747
import org.mybatis.dynamic.sql.util.mybatis3.CommonSelectMapper;
48-
import org.testcontainers.containers.MySQLContainer;
4948
import org.testcontainers.junit.jupiter.Container;
5049
import org.testcontainers.junit.jupiter.Testcontainers;
50+
import org.testcontainers.mysql.MySQLContainer;
5151

5252
/**
5353
* Note: the data and tests in this class are taken from the MySQL
@@ -57,10 +57,10 @@
5757
@Testcontainers
5858
class WindowFunctionsTest {
5959

60-
@SuppressWarnings("resource")
6160
@Container
62-
private static final MySQLContainer<?> mysql =
63-
new MySQLContainer<>(TestContainersConfiguration.MYSQL_LATEST)
61+
private static final MySQLContainer mysql =
62+
new MySQLContainer(TestContainersConfiguration.MYSQL_LATEST)
63+
.withUrlParam("openTelemetry", "DISABLED")
6464
.withInitScript("examples/window_functions/CreateDB.sql");
6565

6666
private SqlSessionFactory sqlSessionFactory;

0 commit comments

Comments
 (0)