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.
Features
- Base test class that starts up a full Struts 2 instance
- Great for testing how configuration is loaded and Struts 2 components are used
Usage
Example
Settings
This plugin doesn't support any global settings.
Installation
This plugin is meant to be used during unit testing, and not during runtime. Therefore, include it in your build's classpath, but do not deploy it to WEB-INF/lib
in your Struts 2 application.