DbUnit Framework.
DbUnit is a JUnit extension (also usable from Ant) 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 sub....
Here is the list of declaration for dbunit. If you use Maven you can use the following code to add the dependency for this POM file.
<dependency> <groupId>org.dbunit</groupId> <artifactId>dbunit</artifactId> <version>2.4.6</version> </dependency>
If you think this Maven repository POM file listing for dbunit is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Name:GNU Lesser General Public License, Version 2.1
URL: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt.
The dbunit-2.4.6 has 14 dependencies.The most popular ones are listed in the following table along with their categories and number of artifacts depending on them.
Category | Artifact | Depended By Count |
---|---|---|
JUnit | junit 3.8.2 JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java. | 555 |
Log | slf4j-api 1.5.6 The slf4j API | 64 |
Data Structure | commons-collections 3.2.1 Types that extend and augment the Java Collections Framework. | 419 |
XML Graphics | poi 3.2-FINAL Apache POI - Java API To Access Microsoft Format Files | 11 |
Library | gsbase 2.0.1 A collection of java utility classes | 30 |
The following plugins are used in the dbunit-2.4.6.jar
The following packages are defined in the dbunit-2.4.6.jar
org.dbunit org.dbunit.ant org.dbunit.assertion org.dbunit.database org.dbunit.database.search org.dbunit.database.statement org.dbunit.dataset org.dbunit.dataset.common.handlers org.dbunit.dataset.csv org.dbunit.dataset.datatype org.dbunit.dataset.excel org.dbunit.dataset.filter org.dbunit.dataset.sqlloader org.dbunit.dataset.stream org.dbunit.dataset.xml org.dbunit.ext.db2 org.dbunit.ext.h2 org.dbunit.ext.hsqldb org.dbunit.ext.mssql org.dbunit.ext.mysql org.dbunit.ext.netezza org.dbunit.ext.oracle org.dbunit.ext.postgresql org.dbunit.operation org.dbunit.util org.dbunit.util.concurrent org.dbunit.util.search org.dbunit.util.xml
Here is the content of the POM file.
<?xml version="1.0" encoding="ISO-8859-1"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.dbunit</groupId> <artifactId>dbunit</artifactId> <packaging>jar</packaging> <version>2.4.6</version> <name>DbUnit Framework</name> <url>http://dbunit.sourceforge.net</url> <inceptionYear>2002</inceptionYear> <description> DbUnit is a JUnit extension (also usable from Ant) 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. </description> <licenses> <license> <name>GNU Lesser General Public License, Version 2.1</name> <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url> <distribution>repo</distribution> </license> </licenses> <properties> <compileSource>1.4</compileSource> <checkstyle.excludes>org/dbunit/util/concurrent/*.java</checkstyle.excludes> </properties> <scm> <connection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.6</connection> <developerConnection>scm:svn:https://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.6</developerConnection> <url>http://dbunit.svn.sourceforge.net/svnroot/dbunit/tags/dbunit-2.4.6</url> </scm> <issueManagement> <system>SourceForge</system> <url>http://sourceforge.net/tracker/?group_id=47439</url> </issueManagement> <ciManagement> <system>parabuild</system> <url><![CDATA[http://parabuild.viewtier.com:8080/parabuild/index.htm?view=detailed&buildid=30]]></url> <notifiers> <notifier> <type>mail</type> <sendOnError>true</sendOnError> <sendOnFailure>false</sendOnFailure> <sendOnSuccess>false</sendOnSuccess> <sendOnWarning>false</sendOnWarning> <configuration> <address>gommma@users.sourceforge.net</address> </configuration> </notifier> </notifiers> </ciManagement> <mailingLists> <mailingList> <name>DbUnit User List</name> <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</subscribe> <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-user</unsubscribe> <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-user</archive> </mailingList> <mailingList> <name>DbUnit Developer List</name> <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</subscribe> <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-developer</unsubscribe> <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-developer</archive> </mailingList> <mailingList> <name>DbUnit SVN Commit List</name> <subscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</subscribe> <unsubscribe>http://lists.sourceforge.net/lists/listinfo/dbunit-commit</unsubscribe> <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=dbunit-commit</archive> </mailingList> </mailingLists> <!-- - Who are the developers for the project, in order of recent activity. --> <contributors> <contributor> <name>Klas Axel</name> <roles> <role>HsqldbDataTypeFactory</role> </roles> </contributor> <contributor> <name>Erik Price</name> <roles> <role>DatabaseSequenceOperation</role> </roles> </contributor> <contributor> <name>Jeremy Stein</name> <roles> <role>InsertIndentityOperation</role> </roles> </contributor> <contributor> <name>Keven Kizer</name> <roles> <role>Early guinea pig</role> </roles> </contributor> <contributor> <name>Mike Bresnahan</name> <roles> <role>DbUnit evangelist</role> </roles> </contributor> <contributor> <name>Andres Almiray</name> <email>aalmiray@users.sourceforge.net</email> <roles> <role>IDatabaseTester creator</role> </roles> </contributor> </contributors> <dependencies> <!-- TODO: check which dependencies could marked as optional. For instance, ant is optional because it's only necessary for the dbunit Ant tasks. --> <!-- TODO: add exclusion for dependencies that include xerces/xalan --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.2</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.5.6</version> </dependency> <dependency> <groupId>commons-collections</groupId> <artifactId>commons-collections</artifactId> <version>3.2.1</version> </dependency> <dependency> <groupId>ant</groupId> <artifactId>ant</artifactId> <version>1.5.4</version> <optional>true</optional> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.2-FINAL</version> <optional>true</optional> </dependency> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-testutil</artifactId> <version>1.7.0</version> <optional>true</optional> <scope>test</scope> </dependency> <dependency> <groupId>junit-addons</groupId> <artifactId>junit-addons</artifactId> <version>1.4</version> <scope>test</scope> </dependency> <dependency> <groupId>mockobjects</groupId> <artifactId>mockobjects-core</artifactId> <version>0.07</version> <scope>test</scope> </dependency> <dependency> <groupId>mockmaker</groupId> <artifactId>mmmockobjects</artifactId> <version>1.12.0</version> <scope>test</scope> </dependency> <!-- TODO: check why follow dependency is necessary --> <dependency> <groupId>mockobjects</groupId> <artifactId>mockobjects-jdk1.3</artifactId> <version>0.07</version> <scope>test</scope> </dependency> <dependency> <groupId>hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>1.8.0.1</version> <scope>test</scope> </dependency> <dependency> <!-- Only needed when "profile.properties" is set to "derby" environment --> <groupId>org.apache.derby</groupId> <artifactId>derby</artifactId> <version>10.4.1.3</version> <scope>test</scope> </dependency> <dependency> <groupId>gsbase</groupId> <artifactId>gsbase</artifactId> <version>2.0.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-nop</artifactId> <version>1.5.6</version> <scope>runtime</scope> <optional>true</optional> </dependency> </dependencies> <build> <defaultGoal>install</defaultGoal> <sourceDirectory>src/java</sourceDirectory> <testSourceDirectory>src/test</testSourceDirectory> <!-- TODO: move to M2's expected path and separate java from test (once SCM is migrated to SVN...) --> <resources> <resource> <directory>.</directory> <includes> <include>LICENSE.txt</include> </includes> </resource> <resource> <directory>src/java</directory> <includes> <include>**/dataset.dtd</include> </includes> </resource> <resource> <directory>src/csv</directory> <includes> <include>**/cvs-tests.properties</include> </includes> </resource> </resources> <!-- TODO: that are some resources on src that should be on test... <testResources> <testResource> </testResource> </testResources> --> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <excludes> <exclude>**/Abstract*.java</exclude> </excludes> <includes> <include>**/*Test.java</include> </includes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${compileSource}</source> <target>${compileSource}</target> <compilerVersion>${compileSource}</compilerVersion> <!-- TODO somehow we must ensure that the used rt.jar is really a 1.4 and not higher, also for continuous integration --> <!--<executable>${JAVA_1_4_HOME}/bin/javac</executable>--> <debug>true</debug> <fork>true</fork> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.0-beta-9</version> <configuration> <goals>javadoc:javadoc site changes:announcement-generate assembly:assembly deploy</goals> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <includes> <include>/LICENSE.txt</include> <include>**</include> </includes> </configuration> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptors> <descriptor>assembly.xml</descriptor> </descriptors> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <executions> <execution> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> </plugin> <!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> </plugin> --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <configLocation>checkstyle.xml</configLocation> <argLine>-Xmx512m -Xms128m</argLine> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <configuration> <linkXref>true</linkXref> <sourceEncoding>utf-8</sourceEncoding> <minimumTokens>100</minimumTokens> <targetJdk>${compileSource}</targetJdk> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jdepend-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <destDir>apidocs</destDir> <quiet>true</quiet> <stylesheet>maven</stylesheet> <tags> <tag> <name>TODO</name> <placement>a</placement> <head>To do:</head> </tag> </tags> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changes-plugin</artifactId> <version>2.0</version> <configuration> <smtpHost>localhost</smtpHost> <smtpPort implementation="java.lang.Integer">25</smtpPort> <introduction>If you are reading this, the maintainer forgot to descrive what's the purpose of this release!!!</introduction> <toAddresses> <toAddress implementation="java.lang.String">dbunit-developer@lists.sourceforge.net</toAddress> <toAddress implementation="java.lang.String">dbunit-user@lists.sourceforge.net</toAddress> </toAddresses> <urlDownload>http://sourceforge.net/project/showfiles.php?group_id=47439</urlDownload> <issueLinkTemplate><![CDATA[http://sourceforge.net/support/tracker.php?aid=%ISSUE%]]></issueLinkTemplate> </configuration> <reportSets> <reportSet> <reports> <report>changes-report</report> <report>license</report> </reports> </reportSet> </reportSets> </plugin> </plugins> </reporting> <distributionManagement> <snapshotRepository> <id>sourceforge</id> <name>SourceForge Snapshots Repo</name> <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/snapshots</url> </snapshotRepository> <repository> <id>sourceforge</id> <name>SourceForge Releases Repo</name> <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs/repo/official</url> </repository> <site> <id>sourceforge</id> <url>scp://shell.sourceforge.net/home/groups/d/db/dbunit/htdocs</url> </site> </distributionManagement> <profiles> <profile> <id>official</id> <dependencies> <dependency> <groupId>javax.sql</groupId> <artifactId>jdbc-stdext</artifactId> <version>2.0</version> <optional>true</optional> </dependency> </dependencies> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${compileSource}</source> <target>${compileSource}</target> <compilerVersion>${compileSource}</compilerVersion> <executable>${JAVA_1_4_HOME}/bin/javac</executable> <debug>true</debug> <fork>true</fork> </configuration> </plugin> </plugins> </pluginManagement> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changes-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changelog-plugin</artifactId> </plugin> </plugins> </reporting> </profile> </profiles> </project>