tags:

views:

81

answers:

1

i wonder whether it is possible to have a fixture that can be shared between testcases for instance a hibernate session.

Thank you!

A: 

You want all your tests (not testcases) to share the same hibernate session ?

Create it in your setUp() method, only if it has not been already created, and store it in a static member of your testcase class, similar to a singleton implementation.

philippe