On 11.09.10 10:16, Patrick Holthuizen wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I use Derby with an in-memory database for unit testing. All unit
tests share a single connection. Now I want to assert (not close) (in
the tear down of a unit test) that all result sets and statements used
during the test are properly closed. Is it possible to obtain all
resources related to a connection which are currently open?

Hi Patrick,

Not that I'm aware of.
The only thing I can think of is issuing a rollback/commit, but that doesn't guarantee that resources are closed. In the Derby test framework we have utility methods keeping track of the resources, and they are closed automatically (if not closed already) in the tear down method.

Is there a specific reason why you don't want to close the connection?


Regards,
--
Kristian

Thank you in advance.

Sincerely,
Patrick Holthuizen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkyLOuEACgkQ2xeQKUlEiTbIlwCcDMlqnzmuVpnbERGKUOYRC3LL
tMIAniDkMI/pO3OAuwEQKUuenwI8WFRl
=Qc/F
-----END PGP SIGNATURE-----


Reply via email to