com.mockrunner.test.util.test.html Maven / Gradle / Ivy
Show all versions of mockrunner-jdk1.6-j2ee1.3 Show documentation
Mockrunner
Home
Examples
JavaDoc
Download
License
Contact
Impressum
Mockrunner is a lightweight framework for testing
Struts
actions and forms, servlets and tag classes. It extends JUnit and simulates
the necessary behaviour without calling the real infrastructure, i.e.
it does not call the Struts
ActionServlet or any other Struts
class except for the tested action. This makes it very fast and enables the
user to manipulate all involved classes and mockobjects in all steps
of the test making it possible to write very sophisticated unit-tests
for Struts and servlets without any overhead.
Mockrunner does not read the struts-conig.xml file or any other
configuration file like web.xml. It offers an API to specify
all necessary precondtions and parameters. This makes it possible to
test the action as a reusable component with all possible parameters
and with different form beans. So you can be sure the action works
properly regardless of the settings you use for that action in
one or another application.
Mockrunner is a pure mock based solution for unit tests. It's purpose
is to test one single action, form bean, tag class or servlet at a time
without overhead. It is not meant for workflow or use-case tests.
Furthermore you cannot test the definitions in the struts-config.xml file.
If you want to do that, you can use StrutsTestCase or Cactus .
Please note that Mockrunner is in Alpha status. The Struts test module
is working fine but there's still a lot to do, especially with the other
test modules. The package structure and the APIs are far from being stable
and may change in the next releases. It is planned to include support for
other frameworks in the J2EE environment in future releases.