Sunday 15 March 2015

tdd - junit - share a fixture between testcase -


I wonder if there can be a stability that can be shared between tests, for example a hibernate session .

Do you want all your tests (not testcases) to share your hibernate session?

Create it in your setup () method, only if it is not already created, and it has been stored in a stable member of its testcases class as a singleton implementation.


No comments:

Post a Comment