Spring DBUnit

A Spring integration for the DBUnit framework

License

License

GroupId

GroupId

com.excilys.ebi.spring-dbunit
ArtifactId

ArtifactId

spring-dbunit
Last Version

Last Version

1.4.0
Release Date

Release Date

Type

Type

pom
Description

Description

Spring DBUnit
A Spring integration for the DBUnit framework
Project URL

Project URL

https://github.com/excilys/spring-dbunit
Source Code Management

Source Code Management

https://github.com/excilys/spring-dbunit

Download spring-dbunit

Filename Size
spring-dbunit-1.4.0.pom 7 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/com.excilys.ebi.spring-dbunit/spring-dbunit/ -->
<dependency>
    <groupId>com.excilys.ebi.spring-dbunit</groupId>
    <artifactId>spring-dbunit</artifactId>
    <version>1.4.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.excilys.ebi.spring-dbunit/spring-dbunit/
implementation 'com.excilys.ebi.spring-dbunit:spring-dbunit:1.4.0'
// https://jarcasting.com/artifacts/com.excilys.ebi.spring-dbunit/spring-dbunit/
implementation ("com.excilys.ebi.spring-dbunit:spring-dbunit:1.4.0")
'com.excilys.ebi.spring-dbunit:spring-dbunit:pom:1.4.0'
<dependency org="com.excilys.ebi.spring-dbunit" name="spring-dbunit" rev="1.4.0">
  <artifact name="spring-dbunit" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.excilys.ebi.spring-dbunit', module='spring-dbunit', version='1.4.0')
)
libraryDependencies += "com.excilys.ebi.spring-dbunit" % "spring-dbunit" % "1.4.0"
[com.excilys.ebi.spring-dbunit/spring-dbunit "1.4.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • spring-dbunit-core
  • spring-dbunit-test
  • spring-dbunit-servlet

Build Status

Goal

Spring DBunit provides DBUnit add-ons for Spring Framework.

It allows you to easily insert and cleanup test data into the database of your choice.

Use cases examples :

  • "pseudo" unit tests on a DAO layer, with an in-memory database like HSQLDB or H2 and a schema automatically created with Hibernate hibernate.hbm2ddl.auto=create-drop.
  • GUI integration tests with Selenium, with a persistent database and an existing schema.
  • application prototype development, with data reloaded on application startup

Getting Spring DBUnit

Starting from 1.4.0, releases are in Maven Central, all you need to add to your POM is:

<dependency>
	<groupId>com.excilys.ebi.spring-dbunit</groupId>
	<!-- or spring-dbunit-servlet -->
	<artifactId>spring-dbunit-test</artifactId>
	<version>1.4.0</version>
</dependency>

For older versions of Spring DBUnit, read the Maven Wiki page.

Note that you need version 1.1.X of DBUnit if you use Spring 3.X

Documentation

Have a look at these Wiki pages for documentation :

Release Notes

See Github's Milestones

License

Spring DBUnit is released under the Apache Software License v2.0 (See LICENSE file)

com.excilys.ebi.spring-dbunit

Excilys

Versions

Version
1.4.0