struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Belingueres <>
Subject [ANN] struts2-junit utility classes for testing with JUnit 4
Date Wed, 03 Aug 2011 19:27:18 GMT

I'd like to introduce this simple library, which is based on the
StrutsJUnit4TestCase class that comes with the Struts 2 distribution.


This library is primarily intended for integration tests, meaning you
can test your actions and interceptors against a complete struts
interceptor stack, and more generally, against a custom made
struts.xml file.

Actually the library is only 2 classes:

  * StrutsBaseTestCase: A base class from which your test cases would
need to extend.
  * @Config: An annotation specifying which action to execute in the
test. This annotation is versatile enough to let you configure test
class commonalities only one time at class definition, and introduce
exceptions at test method level.

The project is hosted in google code:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message