struts-user mailing list archives

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


Mime
View raw message