Fix the test entityengine.xml to use JotmFactory as the transaction factory and remove UtilsForTestSetup.loadDatabaseDriver(); from the unit tests

XMLWordPrintable

      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.

              Assignee:
              Unassigned
              Reporter:
              Dylan Etkin [Atlassian]
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 6h
                  6h
                  Remaining:
                  Remaining Estimate - 6h
                  6h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified