If the forkMode is always, the @before/@after should be run for each test and JVM, but is still before the JVM shuts down.

What type of cleanup do you need to do after the JVM is shutdown?

- Brett

On 04/09/2009, at 6:15 AM, David Hoffer wrote:

How does forking work with respect to the @BeforeClass/@AfterClass methods? My use case is that I have some setup code that creates file/db connections that are not destroyed until the jvm is shutdown, therefore I can't cleanup
in the @After method.  However it doesn't work using
@BeforeClass/@AfterClass either and I'm clear why.

I tried using all the fork modes with no success. What's the way to run
tests in one process and then cleanup in another?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to