The JUnit plugin provides integration with the popular JUnit unit testing framework.

This plugin provides a base StrutsTestCase class that can subclassed for tests that work on Struts 2 components. It is used within Struts 2 itself to test core framework components and many bundled plugins. The class StrutsSpringTestCase is also provided, to support testing of actions that use Spring as the object factory.