Project Dependencies

This page describes the library dependencies of Unitils. Transitive dependencies are shown in italic.

Core dependencies

This is the minimal set of dependencies required by Unitils. These are all the dependencies needed for the reflection assert utilities and the injection module.

GroupId ArtifactId Version Classifier Type
commons-logging commons-logging 1.1 jar
commons-lang commons-lang 2.2 jar
commons-collections commons-collections 3.2 jar
ognl ognl 2.6.9 jar

Unitils provides services for JUnit3, JUnit4 and TestNG so one of following dependencies can be used as your unit test framework:

GroupId ArtifactId Version Classifier Type
junit junit 4.4 jar
org.testng testng 5.1 jdk15 jar


Dependencies for database testing

If a connection to the test database is needed, you will also need to add following dependencies to your classpath:

GroupId ArtifactId Version Classifier Type
commons-dbcp commons-dbcp 1.2.2 jar
commons-pool commons-pool 1.2 jar

If you want to use data sets for your test data, you will also need DbUnit:

GroupId ArtifactId Version Classifier Type
dbunit dbunit 2.2 jar

If you want to use test with Hibernate, you will ofcourse need Hibernate (hibernate-annotations is optional):

GroupId ArtifactId Version Classifier Type
org.hibernate hibernate 3.2.0.ga jar
antlr antlr 2.7.6 jar
cglib cglib 2.1_3 jar
dom4j dom4j 1.6.1 jar
net.sf.ehcache ehcache 1.2 jar
asm asm-attrs 1.5.3 jar
org.hibernate hibernate-annotations 3.2.0.ga jar


Dependencies for testing with mock objects

Next to the core dependencies you will also need to add following dependencies to your classpath when you want to use Unitils to create mocks object:

GroupId ArtifactId Version Classifier Type
org.easymock easymock 2.2 jar
org.easymock easymockclassextension 2.2 jar
cglib cglib 2.1_3 jar


Dependencies for testing with Spring

If Spring support is needed, you will also need to add some spring libraries (or the full spring jar) to your classpath. Version 2.0 is shown in the table, but version 1.2 can also be used. The spring-hibernate3 library is optional and can be left out if you don't use Hibernate.

GroupId ArtifactId Version Classifier Type
org.springframework spring-beans 2.0.2 jar
org.springframework spring-context 2.0.2 jar
aopalliance aopalliance 1.0 jar
org.springframework spring-core 2.0.2 jar
org.springframework spring-dao 2.0.2 jar
org.springframework spring-hibernate3 2.0.2 jar
org.springframework spring-jdbc 2.0.2 jar