[hibernate-issues] [Hibernate-JIRA] Created: (OGM-45) Rewrite OgmTestCase: broken in a few ways

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Apr 15 09:16:59 EDT 2011


Rewrite OgmTestCase: broken in a few ways
-----------------------------------------

                 Key: OGM-45
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/OGM-45
             Project: Hibernate OGM
          Issue Type: Improvement
            Reporter: Emmanuel Bernard


The sessionFactory handling (sessions) expect:
 - to reuse the same sessionFActory across test (good)
 - does not close the sessionfactory during the latest test

this model works if everyone extends OgmTestCase but that's not true.
=> the test suite fails when used in a cluster

We should get rid of this session factory reuse code / assumption entirely:
 - done by closing and nullifying the sessions object on tearDown 

The code should be cleaned up though



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list