-
Type:
Suggestion
-
Resolution: Obsolete
-
None
-
Component/s: Infrastructure & Services - Application Lifecycle
-
None
Currently the unit test entityengine.xml is using the DumbFactory transaction factory, which causes us to need to invoke the UtilsForTestSetup.loadDatabaseDriver() method. There are lots of JIRA classes that initialize the db without us really realizing it and the ordering of the running of the unit tests can make it such that the "test" db connection gets initialized incorrectly.
We need to change the test entityengine.xml to use the Jotm transaction factory. This will cause the TestUpgradeUtils test to fail because the upgrade util is written in such a way that it assumes the Connection is in autocommit mode. This test and the method it tests either needs to be removed or we need to update the code to check if the connection is set to autocommit and if not then commit the connection.