Download

What is JWebUnit?

JWebUnit is a Java framework that facilitates creation of acceptance tests for web applications. It evolved from a project where we were using JUnit to create acceptance tests. Also, we can have different testing engines. Currently, only HtmlUnit plugin is ready. Some work is in progress to use Selenium to execute tests. As the tests were being written, they were continuously refactored to remove duplication and other bad smells in the test code. JWebUnit is the result of these refactorings.

What does JWebUnit provide?

JWebUnit provides a high-level API for navigating a web application combined with a set of assertions to verify the application's correctness. This includes navigation via links, form entry and submission, validation of table contents, and other typical business web application features. This code try to stay independent of the libraries behind the scenes. The simple navigation methods and ready-to-use assertions allow for more rapid test creation than using only JUnit and HtmlUnit. And if you want to switch from HtmlUnit to the other soon available plugins, no need to rewrite your tests.

Share