From e4ce888d350a4d19ef845eca068348950a0ebb88 Mon Sep 17 00:00:00 2001 From: Jeff Jensen Date: Sat, 1 Aug 2026 09:27:31 -0500 Subject: [PATCH 1/9] fix(operation): Restore TransactionOperationIT's dead TRANSACTION gate TransactionOperationIT overrode the JUnit-3-era runTest(String) hook to skip on databases without transaction support, but that hook is never invoked under Jupiter (a leftover from the JUnit migration) -- the gate was silently inert. Replace it with a real @BeforeEach Assumptions.assumeTrue(environmentHasFeature(TestFeature.TRANSACTION)). Refs: 870 --- src/changes/changes.xml | 3 +++ .../org/dbunit/operation/TransactionOperationIT.java | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index a10544e63..98b76242a 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -97,6 +97,9 @@ Update maven dependency org.junit.platform:junit-platform-suite-engine from 6.1.1 to 6.1.2 (#818). Update maven dependency ch.qos.logback:logback-classic from 1.5.38 to 1.6.0 (#819). + + Replace TransactionOperationIT's dead JUnit-3-era runTest(String) feature gate (a leftover from the JUnit migration, never invoked under Jupiter) with a real @BeforeEach Assumptions.assumeTrue(environmentHasFeature(TestFeature.TRANSACTION)) check, restoring the class's intended skip-on-unsupported-database protection. + diff --git a/src/test/java/org/dbunit/operation/TransactionOperationIT.java b/src/test/java/org/dbunit/operation/TransactionOperationIT.java index fdfbe2695..903071418 100644 --- a/src/test/java/org/dbunit/operation/TransactionOperationIT.java +++ b/src/test/java/org/dbunit/operation/TransactionOperationIT.java @@ -40,6 +40,8 @@ import org.dbunit.dataset.ITable; import org.dbunit.dataset.xml.XmlDataSet; import org.dbunit.testutil.TestUtils; +import org.junit.jupiter.api.Assumptions; +import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; @@ -60,10 +62,11 @@ class TransactionOperationIT extends AbstractDatabaseIT @Mock private DatabaseOperation mockOperation; - @Override - protected boolean runTest(final String testName) + @BeforeEach + void assumeTransactionsSupported() { - return environmentHasFeature(TestFeature.TRANSACTION); + Assumptions.assumeTrue(environmentHasFeature(TestFeature.TRANSACTION), + "Skip: database profile does not support transactions."); } @Test From 54dfbd9de924c9de525efe2f9ffa2139cc1aaa5b Mon Sep 17 00:00:00 2001 From: Jeff Jensen Date: Sat, 1 Aug 2026 09:28:04 -0500 Subject: [PATCH 2/9] test: Remove dead JUnit-3-era runTest(String) gating hooks TestCase.runTest() was JUnit 3's per-test template method. Its override pair, runTest(String testName)/runTest(), survived the JUnit migration in AbstractDatabaseIT and AbstractTableTest, but nothing under Jupiter calls it -- AbstractDatabaseIT.runTest()'s own body was commented out (// super.runTest();), and there is no TestCase base to invoke it. TruncateTableOperationIT and InsertIdentityOperationIT each overrode it redundantly with a feature check that their already-active @DisabledIfSystemProperty/@EnabledIfSystemProperty annotations already cover. Remove the whole dead chain. Refs: 869 --- src/changes/changes.xml | 3 ++ .../java/org/dbunit/AbstractDatabaseIT.java | 28 ------------------- .../org/dbunit/dataset/AbstractTableTest.java | 13 --------- .../ext/mssql/InsertIdentityOperationIT.java | 7 ----- .../operation/TruncateTableOperationIT.java | 7 ----- 5 files changed, 3 insertions(+), 55 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 98b76242a..715f9066c 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -100,6 +100,9 @@ Replace TransactionOperationIT's dead JUnit-3-era runTest(String) feature gate (a leftover from the JUnit migration, never invoked under Jupiter) with a real @BeforeEach Assumptions.assumeTrue(environmentHasFeature(TestFeature.TRANSACTION)) check, restoring the class's intended skip-on-unsupported-database protection. + + Remove the dead JUnit-3-era runTest(String)/runTest() gating-hook override chain from AbstractDatabaseIT, AbstractTableTest, TruncateTableOperationIT, and InsertIdentityOperationIT: a leftover from the JUnit migration, never invoked under Jupiter (there is no TestCase base to call it), and redundant with each class's already-active @EnabledIfSystemProperty/@DisabledIfSystemProperty gating. + diff --git a/src/test/java/org/dbunit/AbstractDatabaseIT.java b/src/test/java/org/dbunit/AbstractDatabaseIT.java index 4d976bbff..186025802 100644 --- a/src/test/java/org/dbunit/AbstractDatabaseIT.java +++ b/src/test/java/org/dbunit/AbstractDatabaseIT.java @@ -165,34 +165,6 @@ protected void closeConnection(final IDatabaseConnection connection) // return DatabaseOperation.DELETE_ALL; // } - /** - * This method is used so sub-classes can disable the tests according to - * some characteristics of the environment - * - * @param testName - * name of the test to be checked - * @return flag indicating if the test should be executed or not - */ - protected boolean runTest(final String testName) - { - return true; - } - - protected void runTest() throws Throwable - { - if (runTest(getName())) - { - // super.runTest(); - } else - { - if (logger.isDebugEnabled()) - { - logger.debug("Skipping test " + getClass().getName() + "." - + getName()); - } - } - } - public static boolean environmentHasFeature(final TestFeature feature) { try diff --git a/src/test/java/org/dbunit/dataset/AbstractTableTest.java b/src/test/java/org/dbunit/dataset/AbstractTableTest.java index ffb467541..f655dd601 100644 --- a/src/test/java/org/dbunit/dataset/AbstractTableTest.java +++ b/src/test/java/org/dbunit/dataset/AbstractTableTest.java @@ -147,17 +147,4 @@ void testGetValueAndNoSuchColumn_withUnknownColumn_throwsNoSuchColumnException() "Should throw a NoSuchColumnException!"); } - - /** - * This method is used so sub-classes can disable the tests according to - * some characteristics of the environment - * - * @param testName - * name of the test to be checked - * @return flag indicating if the test should be executed or not - */ - protected boolean runTest(final String testName) - { - return true; - } } \ No newline at end of file diff --git a/src/test/java/org/dbunit/ext/mssql/InsertIdentityOperationIT.java b/src/test/java/org/dbunit/ext/mssql/InsertIdentityOperationIT.java index 0cbbd7c93..51d420e69 100644 --- a/src/test/java/org/dbunit/ext/mssql/InsertIdentityOperationIT.java +++ b/src/test/java/org/dbunit/ext/mssql/InsertIdentityOperationIT.java @@ -27,7 +27,6 @@ import org.dbunit.AbstractDatabaseIT; import org.dbunit.Assertion; -import org.dbunit.TestFeature; import org.dbunit.database.DatabaseConfig; import org.dbunit.dataset.Column; import org.dbunit.dataset.DataSetUtils; @@ -52,12 +51,6 @@ @EnabledIfSystemProperty(named = "dbunit.profile", matches = "mssql") class InsertIdentityOperationIT extends AbstractDatabaseIT { - @Override - protected boolean runTest(final String testName) - { - return environmentHasFeature(TestFeature.INSERT_IDENTITY); - } - @Test void testExecuteXML_withXmlDataSet_insertsIdentityRows() throws Exception { diff --git a/src/test/java/org/dbunit/operation/TruncateTableOperationIT.java b/src/test/java/org/dbunit/operation/TruncateTableOperationIT.java index 6ed4fcceb..8c11d98d8 100644 --- a/src/test/java/org/dbunit/operation/TruncateTableOperationIT.java +++ b/src/test/java/org/dbunit/operation/TruncateTableOperationIT.java @@ -20,7 +20,6 @@ */ package org.dbunit.operation; -import org.dbunit.TestFeature; import org.junit.jupiter.api.condition.DisabledIfSystemProperty; /** @@ -44,10 +43,4 @@ protected String getExpectedStament(final String tableName) return "truncate table " + tableName; } - @Override - protected boolean runTest(final String testName) - { - return environmentHasFeature(TestFeature.TRUNCATE_TABLE); - } - } From f16b0c74876373c42b9b94a62da6e4cdbcafe291 Mon Sep 17 00:00:00 2001 From: Jeff Jensen Date: Sat, 1 Aug 2026 09:29:11 -0500 Subject: [PATCH 3/9] test: Remove orphaned JUnit Platform Suite aggregator classes 27 AllTestsSuite/AllAssertionTestSuite/DatabaseTestSuite classes use org.junit.platform.suite.api.@Suite + @SelectClasses -- a JUnit 3/4-era "suite of suites" pattern carried through the JUnit migration. None of their filenames match Surefire's **/*Test.java or Failsafe's **/*IT.java include patterns, so the JUnit Platform launcher never received them as roots. Confirmed unreferenced by any CI workflow, build script, site doc, or IDE configuration -- the root suite's own @SelectClasses list even carried a dead, already-broken commented-out entry, proof they were unmaintained rather than merely unused. Filename-pattern discovery already gives full automatic coverage with zero manual curation, so removing them has no effect on actual test execution or coverage. Refs: 871 --- src/changes/changes.xml | 3 ++ src/test/java/org/dbunit/AllTestsSuite.java | 46 ---------------- .../assertion/AllAssertionTestSuite.java | 37 ------------- .../dbunit/database/DatabaseTestSuite.java | 43 --------------- .../dbunit/database/search/AllTestsSuite.java | 46 ---------------- .../database/statement/AllTestsSuite.java | 36 ------------- .../org/dbunit/dataset/AllTestsSuite.java | 54 ------------------- .../common/handlers/AllTestsSuite.java | 37 ------------- .../org/dbunit/dataset/csv/AllTestsSuite.java | 39 -------------- .../dataset/datatype/AllTestsSuite.java | 43 --------------- .../dbunit/dataset/excel/AllTestsSuite.java | 38 ------------- .../dbunit/dataset/filter/AllTestsSuite.java | 38 ------------- .../dataset/sqlloader/AllTestsSuite.java | 36 ------------- .../dbunit/dataset/stream/AllTestsSuite.java | 36 ------------- .../org/dbunit/dataset/xml/AllTestsSuite.java | 40 -------------- .../java/org/dbunit/ext/AllTestsSuite.java | 42 --------------- .../org/dbunit/ext/db2/AllTestsSuite.java | 35 ------------ .../java/org/dbunit/ext/h2/AllTestsSuite.java | 33 ------------ .../org/dbunit/ext/hsqldb/AllTestsSuite.java | 34 ------------ .../org/dbunit/ext/mckoi/AllTestsSuite.java | 38 ------------- .../org/dbunit/ext/mssql/AllTestsSuite.java | 37 ------------- .../org/dbunit/ext/mysql/AllTestsSuite.java | 36 ------------- .../org/dbunit/ext/oracle/AllTestsSuite.java | 36 ------------- .../dbunit/ext/postgresql/AllTestsSuite.java | 36 ------------- .../org/dbunit/operation/AllTestsSuite.java | 42 --------------- .../java/org/dbunit/util/AllTestsSuite.java | 37 ------------- .../org/dbunit/util/search/AllTestsSuite.java | 39 -------------- .../org/dbunit/util/xml/AllTestsSuite.java | 36 ------------- 28 files changed, 3 insertions(+), 1050 deletions(-) delete mode 100644 src/test/java/org/dbunit/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/assertion/AllAssertionTestSuite.java delete mode 100644 src/test/java/org/dbunit/database/DatabaseTestSuite.java delete mode 100644 src/test/java/org/dbunit/database/search/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/database/statement/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/dataset/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/dataset/common/handlers/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/dataset/csv/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/dataset/datatype/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/dataset/excel/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/dataset/filter/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/dataset/sqlloader/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/dataset/stream/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/dataset/xml/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/ext/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/ext/db2/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/ext/h2/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/ext/hsqldb/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/ext/mckoi/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/ext/mssql/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/ext/mysql/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/ext/oracle/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/ext/postgresql/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/operation/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/util/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/util/search/AllTestsSuite.java delete mode 100644 src/test/java/org/dbunit/util/xml/AllTestsSuite.java diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 715f9066c..1da1bea46 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -103,6 +103,9 @@ Remove the dead JUnit-3-era runTest(String)/runTest() gating-hook override chain from AbstractDatabaseIT, AbstractTableTest, TruncateTableOperationIT, and InsertIdentityOperationIT: a leftover from the JUnit migration, never invoked under Jupiter (there is no TestCase base to call it), and redundant with each class's already-active @EnabledIfSystemProperty/@DisabledIfSystemProperty gating. + + Remove 27 orphaned JUnit Platform @Suite/@SelectClasses aggregator classes (AllTestsSuite/AllAssertionTestSuite/DatabaseTestSuite across nearly every package): a leftover JUnit 3/4-era "suite of suites" pattern that Surefire/Failsafe's filename-pattern test discovery (**/*Test.java, **/*IT.java) never executed, confirmed unreferenced by any CI workflow, build script, site doc, or IDE configuration. + diff --git a/src/test/java/org/dbunit/AllTestsSuite.java b/src/test/java/org/dbunit/AllTestsSuite.java deleted file mode 100644 index badd4e903..000000000 --- a/src/test/java/org/dbunit/AllTestsSuite.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @version $Revision$ - */ -@Suite -@SelectClasses({ - // org.dbunit.ant.AllTests.class, - org.dbunit.assertion.AllAssertionTestSuite.class, - org.dbunit.database.DatabaseTestSuite.class, - org.dbunit.database.search.AllTestsSuite.class, - org.dbunit.dataset.AllTestsSuite.class, - org.dbunit.ext.AllTestsSuite.class, - org.dbunit.operation.AllTestsSuite.class, - org.dbunit.util.AllTestsSuite.class, - org.dbunit.util.search.AllTestsSuite.class, - DatabaseUnitExceptionTest.class, DatabaseProfileTest.class, - DatabaseTestCaseIT.class, DBTestCaseIT.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/assertion/AllAssertionTestSuite.java b/src/test/java/org/dbunit/assertion/AllAssertionTestSuite.java deleted file mode 100644 index bba5b7b3a..000000000 --- a/src/test/java/org/dbunit/assertion/AllAssertionTestSuite.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.assertion; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author gommma (gommma AT users.sourceforge.net) - * @author Last changed by: $Author$ - * @version $Revision$ $Date$ - * @since 2.4.0 - */ -@Suite -@SelectClasses({DefaultFailureHandlerTest.class, DbUnitAssertIT.class, - DiffCollectingFailureHandlerTest.class}) -public class AllAssertionTestSuite -{ -} diff --git a/src/test/java/org/dbunit/database/DatabaseTestSuite.java b/src/test/java/org/dbunit/database/DatabaseTestSuite.java deleted file mode 100644 index c42eb8377..000000000 --- a/src/test/java/org/dbunit/database/DatabaseTestSuite.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.database; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @version $Revision$ - */ -@Suite -@SelectClasses({org.dbunit.database.statement.AllTestsSuite.class, - CachedResultSetTableIT.class, DatabaseConfigTest.class, - DatabaseConnectionIT.class, DatabaseDataSetIT.class, - DatabaseSequenceFilterIT.class, DatabaseTableIteratorTest.class, - DatabaseTableMetaDataIT.class, ForwardOnlyResultSetTableIT.class, - QueryDataSetIT.class, PrimaryKeyFilteredTableWrapperTest.class, - JdbcDatabaseTesterConnectionIT.class, - DefaultDatabaseTesterConnectionIT.class, - ResultSetTableMetaDataIT.class}) -public class DatabaseTestSuite -{ -} diff --git a/src/test/java/org/dbunit/database/search/AllTestsSuite.java b/src/test/java/org/dbunit/database/search/AllTestsSuite.java deleted file mode 100644 index e4b049e5e..000000000 --- a/src/test/java/org/dbunit/database/search/AllTestsSuite.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.database.search; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Felipe Leme (dbunit@felipeal.net) - * @version $Revision$ - * @since Aug 28, 2005 - */ -@Suite -@SelectClasses({ForeignKeyRelationshipEdgeTest.class, - ImportAndExportNodesFilterSearchCallbackIT.class, - ImportNodesFilterSearchCallbackIT.class, - ImportAndExportKeysSearchCallbackIT.class, - ImportedKeysFilteredByPKsCyclicTest.class, - ImportedKeysFilteredByPKsSingleTest.class, - ImportedKeysFilteredByPKsTest.class, - ImportedAndExportedKeysFilteredByPKsCyclicTest.class, - ImportedAndExportedKeysFilteredByPKsSingleTest.class, - ImportedAndExportedKeysFilteredByPKsTest.class, - TablesDependencyHelperIT.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/database/statement/AllTestsSuite.java b/src/test/java/org/dbunit/database/statement/AllTestsSuite.java deleted file mode 100644 index a5ca00240..000000000 --- a/src/test/java/org/dbunit/database/statement/AllTestsSuite.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.database.statement; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @version $Revision$ - */ -@Suite -@SelectClasses({BatchStatementDecoratorTest.class}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/dataset/AllTestsSuite.java b/src/test/java/org/dbunit/dataset/AllTestsSuite.java deleted file mode 100644 index b4bd184cd..000000000 --- a/src/test/java/org/dbunit/dataset/AllTestsSuite.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.dataset; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @version $Revision$ - */ -@Suite -@SelectClasses({org.dbunit.dataset.common.handlers.AllTestsSuite.class, - org.dbunit.dataset.datatype.AllTestsSuite.class, - org.dbunit.dataset.excel.AllTestsSuite.class, - org.dbunit.dataset.filter.AllTestsSuite.class, - org.dbunit.dataset.stream.AllTestsSuite.class, - org.dbunit.dataset.sqlloader.AllTestsSuite.class, - org.dbunit.dataset.xml.AllTestsSuite.class, - org.dbunit.dataset.csv.AllTestsSuite.class, - CaseInsensitiveDataSetTest.class, CaseInsensitiveTableTest.class, - ColumnTest.class, ColumnsTest.class, CompositeDataSetTest.class, - CompositeTableTest.class, DataSetProducerAdapterTest.class, - DataSetUtilsTest.class, DefaultDataSetTest.class, - DefaultReverseTableIteratorTest.class, DefaultTableIteratorTest.class, - DefaultTableMetaDataTest.class, DefaultTableTest.class, - FilteredDataSetTest.class, FilteredTableMetaDataTest.class, - ForwardOnlyDataSetTest.class, ForwardOnlyTableTest.class, - LowerCaseDataSetTest.class, LowerCaseTableMetaDataTest.class, - ReplacementDataSetTest.class, ReplacementTableTest.class, - SortedDataSetTest.class, SortedTableTest.class}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/dataset/common/handlers/AllTestsSuite.java b/src/test/java/org/dbunit/dataset/common/handlers/AllTestsSuite.java deleted file mode 100644 index 642a1b621..000000000 --- a/src/test/java/org/dbunit/dataset/common/handlers/AllTestsSuite.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2008, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.dataset.common.handlers; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author gommma (gommma AT users.sourceforge.net) - * @author Last changed by: $Author$ - * @version $Revision$ $Date$ - * @since 2.4.0 - */ -@Suite -@SelectClasses({EnforceHandlerTest.class, HandlersTest.class, - HandlersTest.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/dataset/csv/AllTestsSuite.java b/src/test/java/org/dbunit/dataset/csv/AllTestsSuite.java deleted file mode 100644 index 9d9dcdc29..000000000 --- a/src/test/java/org/dbunit/dataset/csv/AllTestsSuite.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.dataset.csv; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * Created By: fede Date: 10-mar-2004 Time: 10.52.00 - * - * Last Checkin: $Author$ Date: $Date$ Revision: $Revision$ - */ -@Suite -@SelectClasses({CsvParserTest.class, CsvProducerTest.class, - CsvDataSetWriterTest.class, CsvDataSetTest.class, - CsvURLDataSetTest.class, CsvURLProducerTest.class}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/dataset/datatype/AllTestsSuite.java b/src/test/java/org/dbunit/dataset/datatype/AllTestsSuite.java deleted file mode 100644 index 64edac130..000000000 --- a/src/test/java/org/dbunit/dataset/datatype/AllTestsSuite.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.dataset.datatype; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @version $Revision$ - */ -@Suite -@SelectClasses({BooleanDataTypeTest.class, BigIntegerDataTypeTest.class, - BitDataTypeTest.class, BytesDataTypeTest.class, BlobDataTypeTest.class, - BinaryStreamDataTypeTest.class, DateDataTypeTest.class, - DefaultDataTypeFactoryTest.class, DoubleDataTypeTest.class, - FloatDataTypeTest.class, IntegerDataTypeTest.class, - LongDataTypeTest.class, NumberDataTypeTest.class, - NumberTolerantDataTypeTest.class, StringDataTypeTest.class, - StringIgnoreCaseDataTypeTest.class, TimeDataTypeTest.class, - TimestampDataTypeTest.class, TypeCastExceptionTest.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/dataset/excel/AllTestsSuite.java b/src/test/java/org/dbunit/dataset/excel/AllTestsSuite.java deleted file mode 100644 index 42e57cf05..000000000 --- a/src/test/java/org/dbunit/dataset/excel/AllTestsSuite.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.dataset.excel; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @author Last changed by: $Author$ - * @version $Revision$ $Date$ - * @since 2.2.0 - */ -@Suite -@SelectClasses({XlsDataSetTest.class, XlsTableTest.class, - XlsTableWriteTest.class, XlsxDataSetTest.class, XlsxTableTest.class,}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/dataset/filter/AllTestsSuite.java b/src/test/java/org/dbunit/dataset/filter/AllTestsSuite.java deleted file mode 100644 index 96262b4f7..000000000 --- a/src/test/java/org/dbunit/dataset/filter/AllTestsSuite.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.dataset.filter; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @author Last changed by: $Author$ - * @version $Revision$ $Date$ - * @since 2.2.0 - */ -@Suite -@SelectClasses({ExcludeTableFilterTest.class, IncludeTableFilterTest.class, - SequenceTableFilterTest.class, SequenceTableIteratorTest.class}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/dataset/sqlloader/AllTestsSuite.java b/src/test/java/org/dbunit/dataset/sqlloader/AllTestsSuite.java deleted file mode 100644 index 3a46ba3b4..000000000 --- a/src/test/java/org/dbunit/dataset/sqlloader/AllTestsSuite.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2008, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.dataset.sqlloader; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author gommma (gommma AT users.sourceforge.net) - * @author Last changed by: $Author$ - * @version $Revision$ $Date$ - * @since 2.4.0 - */ -@Suite -@SelectClasses({SqlLoaderCsvDataSetTest.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/dataset/stream/AllTestsSuite.java b/src/test/java/org/dbunit/dataset/stream/AllTestsSuite.java deleted file mode 100644 index e996e2398..000000000 --- a/src/test/java/org/dbunit/dataset/stream/AllTestsSuite.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.dataset.stream; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @version $Revision$ - */ -@Suite -@SelectClasses({BufferedConsumerTest.class, StreamingDataSetTest.class, - StreamingTableTest.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/dataset/xml/AllTestsSuite.java b/src/test/java/org/dbunit/dataset/xml/AllTestsSuite.java deleted file mode 100644 index 22dc381c0..000000000 --- a/src/test/java/org/dbunit/dataset/xml/AllTestsSuite.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2006, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.dataset.xml; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @version $Revision$ - */ -@Suite -@SelectClasses({FlatDtdDataSetIT.class, FlatDtdProducerTest.class, - FlatDtdWriterTest.class, FlatXmlDataSetTest.class, - FlatXmlProducerTest.class, FlatXmlTableTest.class, - FlatXmlTableWriteTest.class, FlatXmlWriterTest.class, - XmlDataSetTest.class, XmlDataSetWriterTest.class, XmlProducerTest.class, - XmlTableTest.class, XmlTableWriteTest.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/ext/AllTestsSuite.java b/src/test/java/org/dbunit/ext/AllTestsSuite.java deleted file mode 100644 index 4fc0985c9..000000000 --- a/src/test/java/org/dbunit/ext/AllTestsSuite.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.ext; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @since Aug 13, 2003 - * @version $Revision$ - */ -@Suite -@SelectClasses({org.dbunit.ext.db2.AllTestsSuite.class, - org.dbunit.ext.mckoi.AllTestsSuite.class, - org.dbunit.ext.mssql.AllTestsSuite.class, - org.dbunit.ext.mysql.AllTestsSuite.class, - org.dbunit.ext.oracle.AllTestsSuite.class, - org.dbunit.ext.hsqldb.AllTestsSuite.class, - org.dbunit.ext.h2.AllTestsSuite.class, - org.dbunit.ext.postgresql.AllTestsSuite.class,}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/ext/db2/AllTestsSuite.java b/src/test/java/org/dbunit/ext/db2/AllTestsSuite.java deleted file mode 100644 index 4e202f87a..000000000 --- a/src/test/java/org/dbunit/ext/db2/AllTestsSuite.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.ext.db2; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @version $Revision$ - */ -@Suite -@SelectClasses({Db2DataTypeFactoryTest.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/ext/h2/AllTestsSuite.java b/src/test/java/org/dbunit/ext/h2/AllTestsSuite.java deleted file mode 100644 index e0af81668..000000000 --- a/src/test/java/org/dbunit/ext/h2/AllTestsSuite.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2008, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.ext.h2; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Felipe Leme - */ -@Suite -@SelectClasses({H2DataTypeFactoryTest.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/ext/hsqldb/AllTestsSuite.java b/src/test/java/org/dbunit/ext/hsqldb/AllTestsSuite.java deleted file mode 100644 index 7e69e0b1b..000000000 --- a/src/test/java/org/dbunit/ext/hsqldb/AllTestsSuite.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.ext.hsqldb; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Klas Axell - */ -@Suite -@SelectClasses({HsqldbDataTypeFactoryTest.class}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/ext/mckoi/AllTestsSuite.java b/src/test/java/org/dbunit/ext/mckoi/AllTestsSuite.java deleted file mode 100644 index dadab5204..000000000 --- a/src/test/java/org/dbunit/ext/mckoi/AllTestsSuite.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.ext.mckoi; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Luigi Talamona (luigitalamona AT users.sourceforge.net) - * @author Last changed by: $Author$ - * @version $Revision$ $Date$ - * @since 2.4.8 - */ -@Suite -@SelectClasses({MckoiDataTypeFactoryTest.class}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/ext/mssql/AllTestsSuite.java b/src/test/java/org/dbunit/ext/mssql/AllTestsSuite.java deleted file mode 100644 index 9b9d45afc..000000000 --- a/src/test/java/org/dbunit/ext/mssql/AllTestsSuite.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.ext.mssql; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @since Apr 11, 2003 - * @version $Revision$ - */ -@Suite -@SelectClasses({InsertIdentityOperationIT.class, MsSqlDataTypeFactoryTest.class, - UniqueIdentifierTypeTest.class}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/ext/mysql/AllTestsSuite.java b/src/test/java/org/dbunit/ext/mysql/AllTestsSuite.java deleted file mode 100644 index e23e85be7..000000000 --- a/src/test/java/org/dbunit/ext/mysql/AllTestsSuite.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.ext.mysql; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @since Sep 3, 2003 - * @version $Revision$ - */ -@Suite -@SelectClasses({MySqlDataTypeFactoryTest.class}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/ext/oracle/AllTestsSuite.java b/src/test/java/org/dbunit/ext/oracle/AllTestsSuite.java deleted file mode 100644 index 7a83447dc..000000000 --- a/src/test/java/org/dbunit/ext/oracle/AllTestsSuite.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.ext.oracle; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @since Aug 13, 2003 - * @version $Revision$ - */ -@Suite -@SelectClasses({OracleDataTypeFactoryTest.class, - Oracle10DataTypeFactoryTest.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/ext/postgresql/AllTestsSuite.java b/src/test/java/org/dbunit/ext/postgresql/AllTestsSuite.java deleted file mode 100644 index 0bc310b70..000000000 --- a/src/test/java/org/dbunit/ext/postgresql/AllTestsSuite.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2009, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.ext.postgresql; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @since Aug 13, 2003 - * @version $Revision$ - */ -@Suite -@SelectClasses({PostgresqlDataTypeFactoryTest.class, - SQLHelperDomainPostgreSQLIT.class}) -public class AllTestsSuite -{ -} diff --git a/src/test/java/org/dbunit/operation/AllTestsSuite.java b/src/test/java/org/dbunit/operation/AllTestsSuite.java deleted file mode 100644 index 1956f4ccb..000000000 --- a/src/test/java/org/dbunit/operation/AllTestsSuite.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2002-2004, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -package org.dbunit.operation; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Manuel Laflamme - * @version $Revision$ - * @since Feb 19, 2002 - */ -@Suite -@SelectClasses({AbstractBatchOperationIT.class, - CloseConnectionOperationTest.class, CompositeOperationIT.class, - DeleteAllOperationIT.class, DeleteOperationIT.class, - InsertOperationIT.class, RefreshOperationIT.class, - TransactionOperationIT.class, TruncateTableOperationIT.class, - UpdateOperationIT.class,}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/util/AllTestsSuite.java b/src/test/java/org/dbunit/util/AllTestsSuite.java deleted file mode 100644 index 7ec41f2bd..000000000 --- a/src/test/java/org/dbunit/util/AllTestsSuite.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2005, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.util; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Felipe Leme (dbunit@felipeal.net) - * @version $Revision$ - * @since Nov 5, 2005 - */ -@Suite -@SelectClasses({CollectionsHelperTest.class, QualifiedTableNameTest.class, - SQLHelperTest.class, TableFormatterTest.class}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/util/search/AllTestsSuite.java b/src/test/java/org/dbunit/util/search/AllTestsSuite.java deleted file mode 100644 index 9ccb0ffb5..000000000 --- a/src/test/java/org/dbunit/util/search/AllTestsSuite.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2005, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.util.search; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author Felipe Leme (dbunit@felipeal.net) - * @version $Revision$ - * @since Aug 25, 2005 - */ -@Suite -@SelectClasses({BiDirectionalEdgesDepthFirstSearchTest.class, - DepthFirstSearchTest.class, EdgeTest.class, - ExcludeNodesSearchCallbackTest.class, - IncludeNodesSearchCallbackTest.class}) -public class AllTestsSuite -{ - -} diff --git a/src/test/java/org/dbunit/util/xml/AllTestsSuite.java b/src/test/java/org/dbunit/util/xml/AllTestsSuite.java deleted file mode 100644 index 59b5ff3df..000000000 --- a/src/test/java/org/dbunit/util/xml/AllTestsSuite.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * The DbUnit Database Testing Framework - * Copyright (C)2008, DbUnit.org - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ -package org.dbunit.util.xml; - -import org.junit.platform.suite.api.SelectClasses; -import org.junit.platform.suite.api.Suite; - -/** - * @author gommma - * @author Last changed by: $Author$ - * @version $Revision$ $Date$ - * @since 2.3.0 - */ -@Suite -@SelectClasses({XmlWriterTest.class}) -public class AllTestsSuite -{ -} From d5cb6e9ac3e3c35e3a8a36f8d70778ed7b1f69fd Mon Sep 17 00:00:00 2001 From: Jeff Jensen Date: Sat, 1 Aug 2026 09:51:10 -0500 Subject: [PATCH 4/9] fix(assertion): Detect JUnit via a real class, not a dead JUnit 3/4 one DbUnitAssertBase.getJUnitFailureFactory() probed for junit.framework.Assert to decide whether JUnit was on the classpath -- a JUnit 3/4 class that has never been present since the project's JUnit 5/6 migration dropped the vintage engine, permanently disabling the JUnitFailureFactory path. Point the probe at org.junit.jupiter.api.Assertions instead. JUnitFailureFactory keeps returning dbUnit's own DbComparisonFailure/ DbAssertionFailedError rather than a JUnit-framework-specific type: DbComparisonFailure's own javadoc states its purpose is to avoid a direct dependency on any particular testing framework, and unifying it with org.opentest4j.AssertionFailedError would force a hard opentest4j runtime dependency onto every dbUnit user, not just those on JUnit 5/6. Removed the stale comments and the never-resolved "TODO Junit5 update" that no longer matched what the code does. Refs: 872 --- src/changes/changes.xml | 3 +++ .../org/dbunit/assertion/DbUnitAssertBase.java | 2 +- .../dbunit/assertion/JUnitFailureFactory.java | 17 ++++++++--------- .../assertion/JUnitFailureFactoryTest.java | 5 ++--- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 1da1bea46..d7bea5478 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -106,6 +106,9 @@ Remove 27 orphaned JUnit Platform @Suite/@SelectClasses aggregator classes (AllTestsSuite/AllAssertionTestSuite/DatabaseTestSuite across nearly every package): a leftover JUnit 3/4-era "suite of suites" pattern that Surefire/Failsafe's filename-pattern test discovery (**/*Test.java, **/*IT.java) never executed, confirmed unreferenced by any CI workflow, build script, site doc, or IDE configuration. + + Fix DbUnitAssertBase's JUnit-detection classpath probe, a leftover from the JUnit migration: it checked for junit.framework.Assert (JUnit 3/4), a class never present since the vintage engine was dropped, permanently disabling the JUnitFailureFactory path. Point the probe at org.junit.jupiter.api.Assertions instead. JUnitFailureFactory continues to return dbUnit's own DbComparisonFailure/DbAssertionFailedError (not a JUnit-framework-specific type) so that no dbUnit user incurs a runtime dependency on any particular test framework's failure classes; removed the stale comments and "TODO Junit5 update" left over from when this was last touched. + diff --git a/src/main/java/org/dbunit/assertion/DbUnitAssertBase.java b/src/main/java/org/dbunit/assertion/DbUnitAssertBase.java index 38679e3b3..82efc0311 100644 --- a/src/main/java/org/dbunit/assertion/DbUnitAssertBase.java +++ b/src/main/java/org/dbunit/assertion/DbUnitAssertBase.java @@ -67,7 +67,7 @@ private FailureFactory getJUnitFailureFactory() { try { - Class.forName("junit.framework.Assert"); + Class.forName("org.junit.jupiter.api.Assertions"); // JUnit available return new JUnitFailureFactory(); } catch (final ClassNotFoundException e) diff --git a/src/main/java/org/dbunit/assertion/JUnitFailureFactory.java b/src/main/java/org/dbunit/assertion/JUnitFailureFactory.java index 023d9002d..faab7c068 100644 --- a/src/main/java/org/dbunit/assertion/JUnitFailureFactory.java +++ b/src/main/java/org/dbunit/assertion/JUnitFailureFactory.java @@ -20,11 +20,15 @@ */ package org.dbunit.assertion; -import org.opentest4j.AssertionFailedError; - /** * Adapter that lets dbunit create JUnit failure objects. - * + *

+ * Returns dbUnit's own {@link DbComparisonFailure}/{@link DbAssertionFailedError} + * rather than a JUnit-framework-specific failure type. dbUnit's own types are used + * even when JUnit is confirmed present (see {@link org.dbunit.assertion.DbUnitAssertBase}) + * so that the object returned here never requires a runtime dependency on any + * particular test framework's failure classes. + * * @author gommma (gommma AT users.sourceforge.net) * @author Last changed by: $Author$ * @version $Revision$ $Date$ @@ -33,10 +37,6 @@ public class JUnitFailureFactory implements FailureFactory { @Override public Error createFailure(final String message, final String expected, final String actual) { - // Return the org.opentest4j.AssertionFailedError object - // TODO Junit5 update something changed the message returned does not include - // the actual and exected - // adding it here for now. return new DbComparisonFailure( message, expected, actual); @@ -44,7 +44,6 @@ public Error createFailure(final String message, final String expected, final St @Override public Error createFailure(final String message) { - // Return the org.opentest4j.AssertionFailedError object - return new AssertionFailedError(message); + return new DbAssertionFailedError(message); } } diff --git a/src/test/java/org/dbunit/assertion/JUnitFailureFactoryTest.java b/src/test/java/org/dbunit/assertion/JUnitFailureFactoryTest.java index 7b6660e20..6bc7c1fad 100644 --- a/src/test/java/org/dbunit/assertion/JUnitFailureFactoryTest.java +++ b/src/test/java/org/dbunit/assertion/JUnitFailureFactoryTest.java @@ -23,7 +23,6 @@ import static org.assertj.core.api.Assertions.assertThat; import org.junit.jupiter.api.Test; -import org.opentest4j.AssertionFailedError; /** * Unit tests for {@link JUnitFailureFactory}, which also exercises the @@ -34,13 +33,13 @@ class JUnitFailureFactoryTest private final JUnitFailureFactory factory = new JUnitFailureFactory(); @Test - void testCreateFailure_withMessageOnly_returnsAssertionFailedError() + void testCreateFailure_withMessageOnly_returnsDbAssertionFailedError() { final String message = "simple failure"; final Error error = factory.createFailure(message); - assertThat(error).as("error type.").isInstanceOf(AssertionFailedError.class); + assertThat(error).as("error type.").isInstanceOf(DbAssertionFailedError.class); assertThat(error.getMessage()).as("message.").isEqualTo(message); } From 57bfc7dad6a02de86b05348e8ac85e589e122fd3 Mon Sep 17 00:00:00 2001 From: Jeff Jensen Date: Sat, 1 Aug 2026 09:53:11 -0500 Subject: [PATCH 5/9] fix(pom): Require Java 17+ to build now that JUnit 6 needs it The enforcer plugin's requireJavaVersion rule was tied to compileSource (1.8), a leftover from before the JUnit 6 migration -- but junit-jupiter 6.x class files require Java 17 to load (verified: bytecode major version 61), so mvn test/verify cannot run on Java 8-16 regardless of what the enforcer claims. CI only worked because .github/actions/jdk-setup pins JDK 21 independently of this rule. Split the concerns: a new enforcerJavaVersion property (17) drives requireJavaVersion, while compileSource (1.8) is unchanged and continues to set the shipped jar's bytecode level for consumers who don't need dbUnit's JUnit test-support classes. Refs: 873 --- pom.xml | 7 ++++++- src/changes/changes.xml | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5116a521d..8cbf6c00c 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,12 @@ github + 1.8 + + 17 org/dbunit/util/concurrent/*.java 3.0.4 @@ -697,7 +702,7 @@ ${mavenVersion} - ${compileSource} + ${enforcerJavaVersion} compile diff --git a/src/changes/changes.xml b/src/changes/changes.xml index d7bea5478..cd07ba6c4 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -109,6 +109,9 @@ Fix DbUnitAssertBase's JUnit-detection classpath probe, a leftover from the JUnit migration: it checked for junit.framework.Assert (JUnit 3/4), a class never present since the vintage engine was dropped, permanently disabling the JUnitFailureFactory path. Point the probe at org.junit.jupiter.api.Assertions instead. JUnitFailureFactory continues to return dbUnit's own DbComparisonFailure/DbAssertionFailedError (not a JUnit-framework-specific type) so that no dbUnit user incurs a runtime dependency on any particular test framework's failure classes; removed the stale comments and "TODO Junit5 update" left over from when this was last touched. + + Split the enforcer plugin's requireJavaVersion rule from compileSource into a new enforcerJavaVersion property (17), since JUnit 6's class files require Java 17 to load (verified: bytecode major version 61) -- a build attempted on the previously-declared minimum, Java 8, could not run tests at all. compileSource (1.8) is unchanged and continues to set the shipped jar's bytecode level for consumers who don't need dbUnit's JUnit test-support classes. + From 9694037eddb5b7eee179a2a4fedcc0b65078413d Mon Sep 17 00:00:00 2001 From: Jeff Jensen Date: Sat, 1 Aug 2026 09:53:25 -0500 Subject: [PATCH 6/9] docs(site): Fix contradictory JDK/JUnit prerequisites in fiveminutes.adoc The "dbUnit in 5 Minutes" tutorial told new users "JDK 8 or newer" immediately above "JUnit 5 (org.junit.jupiter:junit-jupiter) on your test classpath" -- but the current JUnit Jupiter coordinates (6.x) require Java 17 to load. Clarify that JDK 17+ is needed to build/run the tutorial's test, while JDK 8 remains sufficient for dbUnit's core API alone. Refs: 874 --- src/changes/changes.xml | 3 +++ src/site/asciidoc/fiveminutes.adoc | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index cd07ba6c4..27cd487d6 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -112,6 +112,9 @@ Split the enforcer plugin's requireJavaVersion rule from compileSource into a new enforcerJavaVersion property (17), since JUnit 6's class files require Java 17 to load (verified: bytecode major version 61) -- a build attempted on the previously-declared minimum, Java 8, could not run tests at all. compileSource (1.8) is unchanged and continues to set the shipped jar's bytecode level for consumers who don't need dbUnit's JUnit test-support classes. + + Fix the "dbUnit in 5 Minutes" tutorial's contradictory prerequisites: it told new users "JDK 8 or newer" immediately above "JUnit 5 (org.junit.jupiter:junit-jupiter) on your test classpath", but the current JUnit Jupiter coordinates (6.x) cannot load on Java 8-16. Clarify that JDK 17+ is needed to build/run the tutorial's test, while JDK 8 remains sufficient for dbUnit's core API alone. + diff --git a/src/site/asciidoc/fiveminutes.adoc b/src/site/asciidoc/fiveminutes.adoc index 08682e493..cc46ab91e 100644 --- a/src/site/asciidoc/fiveminutes.adoc +++ b/src/site/asciidoc/fiveminutes.adoc @@ -4,8 +4,10 @@ In 5 minutes you'll write a database test that prepares data, exercises your cod == Prerequisites -* JDK 8 or newer. -* JUnit 5 (`org.junit.jupiter:junit-jupiter`) on your test classpath. +* JDK 17 or newer to build and run this tutorial's test (JUnit 6 requires it). The + dbUnit library itself still targets Java 8 bytecode, so JDK 8 remains enough if you + only use its core API without JUnit's test-support classes. +* JUnit 5 or 6 (`org.junit.jupiter:junit-jupiter`) on your test classpath. * An in-memory database for the example — this tutorial uses https://www.h2database.com/[H2] so there's nothing to install or run. From 19b6974daa6e88393c61fb2632ecbcb85eb74371 Mon Sep 17 00:00:00 2001 From: Jeff Jensen Date: Sat, 1 Aug 2026 09:54:09 -0500 Subject: [PATCH 7/9] build: Remove Eclipse launch configs stuck on the JUnit 4 loader The two tracked Eclipse launch configs at the repo root ("dbUnit tests - derby.launch", "dbUnit tests - hsqldb.launch") were last updated in 2024, well before the JUnit 5/6 migrations, and still specify org.eclipse.jdt.junit.loader.junit4 -- Eclipse's JUnit 4 loader cannot discover or run Jupiter @Test methods without a vintage-engine bridge this project doesn't depend on, so as configured these find zero tests. Both also carried dbunit.profile.unsupportedFeatures VM arguments that had drifted from the current *-dbunit.properties files (e.g. missing TIMESTAMP_WITH_TIMEZONE, added later per issue #831). Removed rather than fixed, per maintainer confirmation that no one relies on Eclipse-native (non-Maven) test runs for these profiles. Refs: 875 --- dbUnit tests - derby.launch | 22 ---------------------- dbUnit tests - hsqldb.launch | 22 ---------------------- src/changes/changes.xml | 3 +++ 3 files changed, 3 insertions(+), 44 deletions(-) delete mode 100644 dbUnit tests - derby.launch delete mode 100644 dbUnit tests - hsqldb.launch diff --git a/dbUnit tests - derby.launch b/dbUnit tests - derby.launch deleted file mode 100644 index 440022fae..000000000 --- a/dbUnit tests - derby.launch +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/dbUnit tests - hsqldb.launch b/dbUnit tests - hsqldb.launch deleted file mode 100644 index 00d65d41c..000000000 --- a/dbUnit tests - hsqldb.launch +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 27cd487d6..2a2005d51 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -115,6 +115,9 @@ Fix the "dbUnit in 5 Minutes" tutorial's contradictory prerequisites: it told new users "JDK 8 or newer" immediately above "JUnit 5 (org.junit.jupiter:junit-jupiter) on your test classpath", but the current JUnit Jupiter coordinates (6.x) cannot load on Java 8-16. Clarify that JDK 17+ is needed to build/run the tutorial's test, while JDK 8 remains sufficient for dbUnit's core API alone. + + Remove the two Eclipse launch configs ("dbUnit tests - derby.launch", "dbUnit tests - hsqldb.launch"), last updated in 2024 and still set to Eclipse's JUnit 4 test loader, which cannot discover or run this project's pure-Jupiter test suite at all; both also carried dbunit.profile.unsupportedFeatures VM arguments that had drifted from the current *-dbunit.properties files. Removed rather than fixed, per maintainer confirmation that no one relies on Eclipse-native (non-Maven) test runs for these profiles. + From 8afee1ea9c549720c982faca88fbef6ae77bf16e Mon Sep 17 00:00:00 2001 From: Jeff Jensen Date: Sat, 1 Aug 2026 09:54:58 -0500 Subject: [PATCH 8/9] build: Remove dead hamcrest pattern from dependabot.yml Hamcrest has not been a dependency since the JUnit migration -- no hamcrestVersion property and no org.hamcrest import exist anywhere in the tree -- so this pattern in the test-dependencies group has silently matched zero packages on every Dependabot run. Refs: 876 --- .github/dependabot.yml | 1 - src/changes/changes.xml | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a9c7fe681..d4d37b722 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -21,7 +21,6 @@ updates: patterns: - "org.junit*:*" - "org.mockito:*" - - "org.hamcrest:*" - "org.assertj:*" update-types: ["minor", "patch"] # JDBC drivers and embedded databases used in integration tests diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 2a2005d51..147c919cb 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -118,6 +118,9 @@ Remove the two Eclipse launch configs ("dbUnit tests - derby.launch", "dbUnit tests - hsqldb.launch"), last updated in 2024 and still set to Eclipse's JUnit 4 test loader, which cannot discover or run this project's pure-Jupiter test suite at all; both also carried dbunit.profile.unsupportedFeatures VM arguments that had drifted from the current *-dbunit.properties files. Removed rather than fixed, per maintainer confirmation that no one relies on Eclipse-native (non-Maven) test runs for these profiles. + + Remove the dead org.hamcrest:* pattern from dependabot.yml's test-dependencies group: hamcrest has not been a dependency since the JUnit migration (no hamcrestVersion property, no org.hamcrest import anywhere), so the pattern has silently matched zero packages on every Dependabot run. + From f1975acf3d7e7f767ae3faa000adf1c82963b6fb Mon Sep 17 00:00:00 2001 From: Jeff Jensen Date: Sat, 1 Aug 2026 09:55:43 -0500 Subject: [PATCH 9/9] docs(site): Generalize JUnit 5 wording to JUnit 5/6 in current docs testcases.adoc and testcases/MigratingToIDatabaseTester.adoc described DatabaseTestCase's lifecycle-method behavior as "JUnit 5" specifically, even though the project now ships and tests against JUnit 6 (same org.junit.jupiter:junit-jupiter coordinates, so this is a wording generalization, not a correction). fiveminutes.adoc's equivalent mention was already fixed alongside its JDK prerequisite (05dd06e4). Historical-milestone text (index.adoc's "Since 3.0.0..." framing) and changes.xml action text are left untouched, since those describe what was true at the time. Refs: 877 --- src/changes/changes.xml | 3 +++ src/site/asciidoc/testcases.adoc | 2 +- src/site/asciidoc/testcases/MigratingToIDatabaseTester.adoc | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 147c919cb..9b267a2bc 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -121,6 +121,9 @@ Remove the dead org.hamcrest:* pattern from dependabot.yml's test-dependencies group: hamcrest has not been a dependency since the JUnit migration (no hamcrestVersion property, no org.hamcrest import anywhere), so the pattern has silently matched zero packages on every Dependabot run. + + Generalize current-tense "JUnit 5" wording to "JUnit 5/6" in fiveminutes.adoc, testcases.adoc, and testcases/MigratingToIDatabaseTester.adoc, now that the project ships and tests against JUnit 6 (same org.junit.jupiter:junit-jupiter coordinates, so this is a wording generalization, not a correction). Left historical-milestone text (index.adoc's "Since 3.0.0..." framing) and changes.xml action text untouched, since those describe what was true at the time. + diff --git a/src/site/asciidoc/testcases.adoc b/src/site/asciidoc/testcases.adoc index ad741198e..5717c5863 100644 --- a/src/site/asciidoc/testcases.adoc +++ b/src/site/asciidoc/testcases.adoc @@ -88,7 +88,7 @@ public class SampleTest extends DBTestCase ---- NOTE: `DatabaseTestCase.setUp()`/`tearDown()` are plain protected methods, -not automatically invoked by JUnit 5 — override them with `@BeforeEach`/ +not automatically invoked by JUnit 5/6 — override them with `@BeforeEach`/ `@AfterEach` and call `super` as shown, matching every `DBTestCase`-subclass page linked above. diff --git a/src/site/asciidoc/testcases/MigratingToIDatabaseTester.adoc b/src/site/asciidoc/testcases/MigratingToIDatabaseTester.adoc index 292d9fb6d..10da490a3 100644 --- a/src/site/asciidoc/testcases/MigratingToIDatabaseTester.adoc +++ b/src/site/asciidoc/testcases/MigratingToIDatabaseTester.adoc @@ -172,6 +172,6 @@ public class SampleTest extends TestCase ---- This is what `IDatabaseTester` composition (above) descends from — the -difference today is only that JUnit 5's `@BeforeEach`/`@AfterEach` +difference today is only that JUnit 5/6's `@BeforeEach`/`@AfterEach` annotations replace JUnit 3/4's `setUp()`/`tearDown()` method-name convention.