diff --git a/src/test/java/com/github/mjeanroy/dbunit/it/jupiter/DbUnitDbProductITest.java b/src/test/java/com/github/mjeanroy/dbunit/it/jupiter/DbUnitDbProductITest.java index 8f647a78..7651b0e0 100644 --- a/src/test/java/com/github/mjeanroy/dbunit/it/jupiter/DbUnitDbProductITest.java +++ b/src/test/java/com/github/mjeanroy/dbunit/it/jupiter/DbUnitDbProductITest.java @@ -52,6 +52,8 @@ import static com.github.mjeanroy.dbunit.tests.db.TestDbUtils.countUsers; import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MARIADB_10; import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MSSQL_2017; +import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MSSQL_2019; +import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MSSQL_2022; import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MYSQL_57; import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MYSQL_8; import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.ORACLE_21; @@ -153,7 +155,21 @@ class MariaDB10 extends AbstractDbUnitDbProductITest { @DbUnitTestContainersTest @DbUnitConfig(fkManagers = MsSQLForeignKeyManager.class) @Nested - class MsSQL extends AbstractDbUnitDbProductITest { + class MsSQL2017 extends AbstractDbUnitDbProductITest { + } + + @TestContainersTest(image = MSSQL_2019) + @DbUnitTestContainersTest + @DbUnitConfig(fkManagers = MsSQLForeignKeyManager.class) + @Nested + class MsSQL2019 extends AbstractDbUnitDbProductITest { + } + + @TestContainersTest(image = MSSQL_2022) + @DbUnitTestContainersTest + @DbUnitConfig(fkManagers = MsSQLForeignKeyManager.class) + @Nested + class MsSQL2022 extends AbstractDbUnitDbProductITest { } @DisabledIfSystemProperty( diff --git a/src/test/java/com/github/mjeanroy/dbunit/tests/utils/TestContainersImages.java b/src/test/java/com/github/mjeanroy/dbunit/tests/utils/TestContainersImages.java index de119360..aeeebb44 100644 --- a/src/test/java/com/github/mjeanroy/dbunit/tests/utils/TestContainersImages.java +++ b/src/test/java/com/github/mjeanroy/dbunit/tests/utils/TestContainersImages.java @@ -37,5 +37,7 @@ private TestContainersImages() { public static final String POSTGRES_14 = "postgres:14-alpine"; public static final String POSTGRES_15 = "postgres:15-alpine"; public static final String MSSQL_2017 = "mcr.microsoft.com/mssql/server:2017-latest"; + public static final String MSSQL_2019 = "mcr.microsoft.com/mssql/server:2019-latest"; + public static final String MSSQL_2022 = "mcr.microsoft.com/mssql/server:2022-latest"; public static final String ORACLE_21 = "gvenzl/oracle-xe:21-slim-faststart"; }