db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Matrigali <mikem_...@sbcglobal.net>
Subject recovery testing in junit framework?
Date Fri, 13 Apr 2007 17:55:12 GMT
Currently some recovery testing is done in the old testing harness by
causing the JVM to exit, and then starting a new JVM on the same
database which then automatically causes recovery to be run on whatever
state the 1st test had set up.

Any ideas on how this should work in junit?  Doing the System.exit
gets pretty close to a machine crash so I like that part.  It also
tests our multi-jvm locking for when the jvm has little chance to
clean up on the way down.


Mime
View raw message