When calling MCRLanguageFactory.obtainInstance() in a test which exttends MCRStoreTestCase it throws an exception: Transaction already active
minimal example:
It seems that all test extending MCRStoreTestCase that are not on mycore-base fail (e.g. test MCRFileNameCheckTest fails)
In MCRJPATestCase:setup, we have this.beginTransaction();. If we remove this line, the exception does not occurr anymore. However, other errors occur (tests requiring an existing transaction). It seems that MCRTransactionManager.hasActiveTransactions() does not recognise the transaction opened by the test.
When calling
MCRLanguageFactory.obtainInstance()
in a test which exttends MCRStoreTestCase it throws an exception: Transaction already activeminimal example:
It seems that all test extending MCRStoreTestCase that are not on mycore-base fail (e.g. test
MCRFileNameCheckTest
fails)In MCRJPATestCase:setup, we have
this.beginTransaction();
. If we remove this line, the exception does not occurr anymore. However, other errors occur (tests requiring an existing transaction). It seems thatMCRTransactionManager.hasActiveTransactions()
does not recognise the transaction opened by the test.