Unitils by Filip Neven and Tim Ducheyne
Abstract
Unitils
is a new open source library aimed at simplifying unit testing using JUnit or TestNG. Unitils builds further on existing libraries like DBUnit and EasyMock. It was started as a small framework of base classes, providing support for a number of guidelines and best practices in unit testing. The features it offers are:
General testing utilities:
- Equality assertion through reflection, with different options like ignoring Java default/null values and ignoring order of collections
Database testing utilities:
- Automatic maintenance and constraints disabling of unit test databases
- Simplify unit test database connection setup
- Simplify insertion of test data with DBUnit
- Simplify Hibernate session management for unit testing
- Automatically test the mapping of Hibernate mapped objects with the database
Mock object utilities:
- Simplify EasyMock mock object creation
- Simplify mock object injection
- EasyMock argument matching using reflection equality
Speaker: Filip Neven
Filip is senior software engineer at Ordina with 5 years of experience in Java and J2EE. He has a strong interest for agile development, code quality and unit testing. For the past 2 years, he has been responsible for quality and unit testing on different projects.