Hi all.

In the docs for surefire's testng, it talks about using different listeners
when running surefire.
http://maven.apache.org/plugins/maven-surefire-plugin/examples/testng.html

Is there a similar function that could be used with junit 4.4?

Background for the problem I'm trying to solve:
I am trying to put in some AOP code that will intercept calls to
HTTPSession.setAttribute(...).  Using this we will be able to verify that
any code being put into session is serializable.  Also, for any object that
implments HTTPSession, we'll trap the state of the object being set (using
HashcodeBuilder to generate a hash), and then at the end of the test verify
the the object in our mock session has not changed (has the same hashcode).
In this way we are hoping to add a listener and be able to verify if an
application is clusterable without a tedious class by class inspection.

Thanks for your time!
Jim

Reply via email to