Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-16047

Don't start MyBatis in every test

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.4
    • Component/s: None
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      MyBatis instance is cached in unit tests, but due to a bug it's still started in every test, resulting in a hotspot.

      We can also optimize DbTester to not recreate the ioc container every time a test is executed.

        Attachments

          Activity

            People

            Assignee:
            duarte.meneses Duarte Meneses
            Reporter:
            duarte.meneses Duarte Meneses
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: