摘要
在实现测试驱动开发过程中,DbUnit工具是专门针对数据库测试的单元测试框架,它是对JUnit的一个扩展.DbUnit测试允许程序员在整个测试过程中自由地管理和控制数据库,将其置于一个可知的状态.在明确测试机制、搭建好测试环境的基础之上,围绕数据库备份、植入测试数据集进行单元测试、使数据库恢复到测试前状态等问题进行分析和探讨,以期建立一个良好的测试流程.
In the process of realizing Test-Driven development,DbUnit tool is a kind of unit test framework especially for database testing which is an extension of JUnit.In the process of DbUnit testing,programmer can manage and control database freely,place it in a knowable state.The problems such as database backup,implanting data to test,database recovery are analyzed on the base of clearifying the test mechanism and building the test environment,so as to build a good test process.
出处
《兰州工业高等专科学校学报》
2012年第3期38-41,共4页
Journal of Lanzhou Higher Polytechnical College