http://www.unitils.org/summary.html#
Summary
Unitils is an open source library aimed at making unit and integration testing easy and maintainable.
It is divided into several modules, each of them providing extra support for a certain aspect of your unit and integration tests. If you for example need mocking for your tests, just include unitils-mock as a dependency. If you would also want to load DbUnit data sets, just include unitils-dbunit.
Below you can find a list of the modules and their features. Click on the title to go to the corresponding tutorial and examples.
Features
Reflection assert
Equality assertion through reflection
Possibility to ignore order of collections and Java default/null values
Mock module - Makes mocking easy and maintainable
Simple syntax for defining and asserting invoked behavior
Gives you the best possible feedback so you can easily find out why a test is failing
Argument matchers, partial mocking, stubbing behavior, dummy objects...
Inject module - Easily inject test artifacts into classes and instances
Inject values by type and name
Inject into static fields, e.g. singletons, and automatically reset the old value after the test
IO module - Support for performing IO in tests
Creating temporary files and directories
Loading the contents of files into objects
Database testing - Support for testing with databases and loading of DbUnit data sets
Simplify test database connection setup
Support for setting up a separate schema/database per developer
Transactional testing
Easy loading of data sets
Multi-schema data sets
Expected data set assertions
Automatic test database maintenance - Use DbMaintain to automatically bring your unit test databases up to date before running your tests
Automatic maintenance of databases with support for incremental, repeatable and post processing scripts
Automatically disable constraints and set sequences to a minimum value
Generating an XSD of the database structure for dataset xml files
Hibernate module - Support for Hibernate database testing
Hibernate SessionFactory creation and session management
Automatically test the mapping of JPA entities / hibernate mapped objects with the database
Spring module - Support for testing when your project uses Spring
ApplicationContext configuration and easy injection of spring managed beans into a unit test
Support for using a Spring-configured Hibernate SessionFactory in unit tests.
EasyMock module - Helps you set up tests that use EasyMock as a mocking framework
Simplify EasyMock mock object creation
EasyMock argument matching using reflection equality
分享到:
相关推荐
初识C++ 初识C++ 初识C++初识C++初识C++初识C++初识C++
初识云计算初识云计算初识云计算初识云计算初识云计算初识云计算初识云计算初识云计算
初识计算机初识计算机初识计算机
python 列表初识,通过此代码,你能够了解到python的列表操作
初识计算机PPT课件.pptx
jvm初识及JIT优化jvm初识及JIT优化jvm初识及JIT优化jvm初识及JIT优化jvm初识及JIT优化jvm初识及JIT优化jvm初识及JIT优化jvm初识及JIT优化jvm初识及JIT优化jvm初识及JIT优化jvm初识及JIT优化jvm初识及JIT优化jvm初识...
三年级信息技术课程《初识画图》课件内容 因为要参加比赛,所属机房 装不上
初识计算机 幼儿园计算机课程《初识计算机》全文共15页,当前为第1页。 1. 计算机发展过程 结绳记事 算筹 幼儿园计算机课程《初识计算机》全文共15页,当前为第2页。 1. 计算机发展过程 珠算 幼儿园计算机课程《初识...
初识C语言.pdf
本课是初中信息技术初识excel的教学设计
初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识...
初识Scratch.ppt
初识Python 少儿编程python教案——初识Python全文共24页,当前为第1页。 Python基本概念 海龟编辑器 绘图准备 课程知识点 使用画笔 少儿编程python教案——初识Python全文共24页,当前为第2页。 Python基本概念 ...
操作系统实验报告 实验一 WINDOWS进程初识 实验二 进程管理 实验三 进程同步的经典算法 实验四 存储管理 实验五 文件和设备管理
初识电脑朋友课件
初识ERP初识ERP
初识计算机教案全文共6页,当前为第1页。 初识计算机教案全文共6页,当前为第1页。 课程名称 计算机应用基础 授课时数 2课时 周 次 第 2周 班 级 18级护理1 、2 、3班 时 间 2018年8月8日 节 次 第2次 教学内容 第一...
初识专家系统初识专家系统初识专家系统初识专家系统初识专家系统初识专家系统
初识FLASH动画.ppt
06初识Scratch.ppt