dbUnit is a JUnit extension (also usable from Ant and Maven) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage.
Compile Dependencies (8)
| Category/License | Group / Artifact | Version | Updates | |
|---|---|---|---|---|
JSON Lib
Apache 2.0
| com.fasterxml.jackson.core
»
jackson-databind(optional) General data-binding functionality for Jackson: works on core streaming API | 2.22.1 | 3.2.2 | |
Defect Detection
LGPL 2.1
| com.github.spotbugs
»
spotbugs-annotations(optional) Annotations the SpotBugs tool supports | 4.10.3 | 4.10.4 | |
Build Tool
Apache 2.0
| org.apache.ant
»
ant(optional) Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as ... | 1.10.17 | ✔ | |
Excel Lib
Apache 2.0
| org.apache.poi
»
poi(optional) Apache POI - Java API To Access Microsoft Format Files | 5.5.1 | ✔ | |
Excel Lib
Apache 2.0
| org.apache.poi
»
poi-ooxml(optional) Apache POI - Java API To Access Microsoft Format Files | 5.5.1 | ✔ | |
Testing
EPL 2.0
| org.junit.jupiter
»
junit-jupiter(optional) Module "junit-jupiter" of JUnit | 6.1.3 | ✔ | |
Logging
MIT
| org.slf4j
»
slf4j-api API for SLF4J (The Simple Logging Facade for Java) which serves as a simple facade or abstraction for various logging ... | 2.0.18 | ✔ | |
YAML
Apache 2.0
| org.yaml
»
snakeyaml(optional) YAML 1.1 parser and emitter for Java | 2.6 | ✔ |
Provided Dependencies (2)
| Category/License | Group / Artifact | Version | Updates | |
|---|---|---|---|---|
| com.oracle.database.jdbc
»
ojdbc8(optional) Oracle JDBC Driver compatible with JDK11, JDK17, JDK19, and JDK21 | 19.3.0.0 | 19.32.0.0 | ||
PostgreSQL Driver
BSD 2-clause
| org.postgresql
»
postgresql(optional) PostgreSQL JDBC Driver Postgresql | 42.7.13 | ✔ |
Test Dependencies (9)
| Category/License | Group / Artifact | Version | Updates | |
|---|---|---|---|---|
Logging
EPL 2.0 +1
| ch.qos.logback
»
logback-classic Implementation of the SLF4J API for Logback, a reliable, generic, fast and flexible logging framework. | 1.6.1 | 1.6.3 | |
Embedded SQL DB
EPL 1.0 +1
| com.h2database
»
h2 A fast SQL database that can run embedded or a server mode with support for transactions, encryption, full search, etc. ... | 2.4.240 | ✔ | |
Apache 2.0
| org.apache.ant
»
ant-junitlauncher contains JUnit 5.x support | 1.10.17 | ✔ | |
Assertion
Apache 2.0
| org.assertj
»
assertj-core Rich and fluent assertions for testing in Java | 3.27.7 | ✔ | |
| org.hsqldb
»
hsqldb HSQLDB - Lightweight 100% Java SQL Database Engine | 2.7.4 | ✔ | ||
Testing
EPL 2.0
| org.junit.platform
»
junit-platform-testkit Module "junit-platform-testkit" of JUnit | 6.1.3 | ✔ | |
Mocking
MIT
| org.mockito
»
mockito-core Mockito mock objects library core API and implementation | 5.23.0 | ✔ | |
Mocking
MIT
| org.mockito
»
mockito-junit-jupiter Mockito JUnit 5 support | 5.23.0 | ✔ | |
Logging Bridge
Apache 2.0
| org.slf4j
»
jcl-over-slf4j Jakarta/Apache commons logging 1.2 implemented over SLF4J | 2.0.18 | ✔ |
Managed Dependencies (28)
| Category/License | Group / Artifact | Version | Updates | |
|---|---|---|---|---|
Logging
EPL 2.0 +1
| ch.qos.logback
»
logback-classic Implementation of the SLF4J API for Logback, a reliable, generic, fast and flexible logging framework. | 1.6.1 | 1.6.3 | |
JSON Lib
Apache 2.0
| com.fasterxml.jackson.core
»
jackson-databind General data-binding functionality for Jackson: works on core streaming API | 2.22.1 | 3.2.2 | |
Embedded SQL DB
EPL 1.0 +1
| com.h2database
»
h2 A fast SQL database that can run embedded or a server mode with support for transactions, encryption, full search, etc. ... | 2.4.240 | ✔ | |
| com.ibm.db2
»
jcc IBM Data Server Driver for JDBC and SQLJ is a pure-Java driver (Type 4) that supports the JDBC 4 specification. | 12.1.5.0 | ✔ | ||
JDBC Driver
MIT
| com.microsoft.sqlserver
»
mssql-jdbc Microsoft JDBC Driver for SQL Server. | 7.2.1.jre8 | 13.4.0.jre11 | |
| com.oracle.database.jdbc
»
ojdbc6(optional) Oracle JDBC Driver compatible with JDK8 and JDK11 | 11.2.0.4 | 23.26.3.0.0 | ||
| com.oracle.database.jdbc
»
ojdbc8(optional) Oracle JDBC Driver compatible with JDK11, JDK17, JDK19, and JDK21 | 19.3.0.0 | 19.32.0.0 | ||
| com.oracle.database.jdbc
»
ojdbc10(optional) Oracle JDBC Driver compatible with JDK11, JDK17, JDK19, and JDK21 | 19.32.0.0 | 23.26.3.0.0 | ||
| com.oracle.database.xml
»
xdb(optional) Support for the JDBC 4.x standard java.sql.SQLXML interface | 23.26.3.0.0 | ✔ | ||
| com.oracle.database.xml
»
xmlparserv2 The Oracle Database XML Parser library | 23.26.3.0.0 | ✔ | ||
| mysql
»
mysql-connector-java1 vulnerability MySQL Connector/J is a JDBC Type 4 driver, which means that it is pure Java implementation of the MySQL protocol and ... | 8.0.33 | 26.7.0 | ||
LGPL 2.1
| net.postgis
»
postgis-jdbc(optional) PostGIS adds support for geographic objects to the PostgreSQL object-relational database. | 2025.1.1 | ✔ | |
Build Tool
Apache 2.0
| org.apache.ant
»
ant Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as ... | 1.10.17 | ✔ | |
Apache 2.0
| org.apache.ant
»
ant-junitlauncher contains JUnit 5.x support | 1.10.17 | ✔ | |
Embedded SQL DB
Apache 2.0
| org.apache.derby
»
derby1 vulnerability Contains the core Apache Derby database engine, which also includes the embedded JDBC driver. | 10.14.2.0 | 10.17.1.0 | |
Excel Lib
Apache 2.0
| org.apache.poi
»
poi Apache POI - Java API To Access Microsoft Format Files | 5.5.1 | ✔ | |
Excel Lib
Apache 2.0
| org.apache.poi
»
poi-ooxml Apache POI - Java API To Access Microsoft Format Files | 5.5.1 | ✔ | |
Assertion
Apache 2.0
| org.assertj
»
assertj-core Rich and fluent assertions for testing in Java | 3.27.7 | ✔ | |
| org.hsqldb
»
hsqldb HSQLDB - Lightweight 100% Java SQL Database Engine | 2.7.4 | ✔ | ||
Testing
EPL 2.0
| org.junit.jupiter
»
junit-jupiter Module "junit-jupiter" of JUnit | 6.1.3 | ✔ | |
Testing
EPL 2.0
| org.junit.platform
»
junit-platform-testkit Module "junit-platform-testkit" of JUnit | 6.1.3 | ✔ | |
MySQL Driver
LGPL 2.1
| org.mariadb.jdbc
»
mariadb-java-client JDBC driver for MariaDB and MySQL | 3.5.10 | ✔ | |
Mocking
MIT
| org.mockito
»
mockito-core Mockito mock objects library core API and implementation | 5.23.0 | ✔ | |
Mocking
MIT
| org.mockito
»
mockito-junit-jupiter Mockito JUnit 5 support | 5.23.0 | ✔ | |
PostgreSQL Driver
BSD 2-clause
| org.postgresql
»
postgresql(optional) PostgreSQL JDBC Driver Postgresql | 42.7.13 | ✔ | |
Logging
MIT
| org.slf4j
»
slf4j-api API for SLF4J (The Simple Logging Facade for Java) which serves as a simple facade or abstraction for various logging ... | 2.0.18 | ✔ | |
Logging Bridge
Apache 2.0
| org.slf4j
»
jcl-over-slf4j Jakarta/Apache commons logging 1.2 implemented over SLF4J | 2.0.18 | ✔ | |
YAML
Apache 2.0
| org.yaml
»
snakeyaml YAML 1.1 parser and emitter for Java | 2.6 | ✔ |