DbUnit

来自开放百科 - 灰狐
2010年10月4日 (一) 07:16Allen (讨论 | 贡献)的版本

跳转到: 导航, 搜索

DbUnit is a JUnit extension (also usable with Ant) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage.

DbUnit has the ability to export and import your database data to and from XML datasets. Since version 2.0, DbUnit can works with very large dataset when use in streaming mode. DbUnit can also helps you to verify that your database data match expected set of values.

链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱