Uploaded image for project: 'Unitils'
  1. UNI-226

CleanInsert annotation use the wrong database

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: spring
    • Labels:
      None
    • Environment:
      Windows, maven3

      unitils 4.0-SNAPSHOT revision 1355

      Description

      Scenario:

      I have one test class which use a Spring context which utilize databaseA and another test class which load a different Spring context and should use a different database. Both test classes are located in the same Maven module.

      Any test works fine when run in isolation, but when I include both in the same test run, CleanInsertDataset tries to insert data into the database specified in the previous Spring context. The updatedb task from dbmaintain updates the correct database in any run, it is just the CleanInsertDataset operation which is wrongly configured.

      This seems like a bug to me, but whether it is a bug in Spring Test context framework or in unitils, I cannot say.

      I can upload the spring context files and paste the console output tomorrow.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sherriff Erik Drolshammer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: