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的列表操作
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初识...
三年级信息技术课程《初识画图》课件内容 因为要参加比赛,所属机房 装不上
初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识JavaScript(源代码)初识...
初识C语言.pdf
"初识计算机PPT课件" 计算机的基本概念: 计算机是一种电子设备,能够执行用户的指令,进行数据处理和存储。计算机的种类很多,可以分为台式计算机、便携式计算机、掌上计算机等。 台式计算机: 台式计算机是一...
初识ERP初识ERP
【初识Excel教学设计】 Excel是一款广泛应用于数据管理和分析的电子表格软件,对于初学者来说,理解其基本功能和操作是至关重要的。本教学设计针对初中信息技术课程,旨在引导初一学生逐步熟悉Excel,帮助他们建立...
初识数据安全系列语音教程
这个“MATLAB初识神经网络”视频教程是为那些想要入门神经网络学习者设计的,它将引导你逐步了解神经网络的基本概念和MATLAB中的实现方法。 神经网络,作为人工智能的重要分支,模仿了人脑的结构和功能,通过大量的...
本课是中学信息技术-_《初识Excel》PPT课件.ppt 的课件
初识EXCEL 教案 多媒体课件教师上课专用
标题中的“初识A*寻路算法”表明我们要探讨的是计算机科学中的一种路径搜索算法——A*(A-star)算法。A*算法是Dijkstra算法的优化版本,广泛应用于游戏开发、地图导航、网络路由等领域,它通过引入启发式信息来实现...
【初识电脑朋友课件】是一份专为初学者设计的信息技术入门教程,旨在帮助初次接触电脑的朋友快速理解和掌握基本的计算机操作技能。这个课件可能涵盖了从打开电脑到使用各种常见软件的全面内容,是学习电脑基础知识的...
#### 实验一:Windows 进程初识 ##### 实验目的 1. **学会使用VC编写基本的Win32 Console Application(控制台应用程序)**: - 通过本实验,学生将了解如何在Visual C++ 6.0环境中创建控制台应用程序。 - 掌握...
### 数据结构的基本概念 数据结构是计算机存储、组织数据的方式。它旨在使数据的存取和处理更加高效。数据结构通常由数据对象和数据关系两部分构成。数据对象是指具有相同数据类型的元素的集合;...
第01讲 初识Java.ppt