JT <JT@hotmail.comwrote:
They want to use EJB3 which I do not know anything about. Thanks.
Okay - there's certainly the concept of transaction scopes within EJB3,
although I can't remember the details. If you show them your .NET code
and explain what it does, they should be able to do a similar thing in
Java.
Personally I don't do that though - I create appropriate conditions in
the unit test database at the start of each test, but don't remove
anything at the end. Each test needs to be able to set itself up
completely. This is less efficient, but does have the advantage that if
a test fails, you can see the state of the database at the point of
failure. It also means you can test code which *does* commit
transactions :)
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too