> I'll look through the code more closely. But recovery is testable. What
> you have to do is create some corrupt data files (probably by using a
> byte-level editor to munge some existing data files). Then you need
> some scripts to start up the server with those files -- which doesn't
> fit so well with a pure-Java Junit-based test suite. (You could also
> create the files by making versions of the server which quit at
> various awkward places.) What this won't test so easily is recovery
> from failures during recovery.

How about using JUnit to corrupt some files, then startup the component 
which reads those files and test that is throws the proper exceptions?

--jason


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to