You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gabriel Belingueres <be...@gmail.com> on 2011/08/03 21:27:18 UTC

[ANN] struts2-junit utility classes for testing with JUnit 4

Hi,

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

Usage

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:

http://code.google.com/p/struts2-junit/

Regards,
Gabriel

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org