- DbUnit is a JUnit extension (also usable with Ant) targeted at 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.
HttpUnit is an open source software testing framework used to perform testing of web sites without the need for a web browser. HttpUnit supports HTML form submission, JavaScript, HTTP basic access authentication, automatic page redirection, and cookies. HttpUnit is well suited to be used in combination with JUnit, in order to easily write tests that verify the proper behavior of a web site.
EasyMock
EasyMock provides Mock Objects for interfaces (and objects through the class extension) by generating them on the fly using Java's proxy mechanism. Due to EasyMock's unique style of recording expectations, most refactorings will not affect the Mock Objects. So EasyMock is a perfect fit for Test-Driven Development. Breif tutorial for EasyMock. http://www.vogella.com/articles/EasyMock/article.html
No comments:
Post a Comment