Uploaded image for project: 'DdlUtils'
  1. DdlUtils
  2. DDLUTILS-255

Test tearDown call of assertAndEnsureClearDatabase masks the real test failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1
    • None
    • None

    Description

      Currently TestAgainstLiveDatabaseBase.tearDown() will call assertAndEnsureClearDatabase() even when there is a test failure. Unfortunately this masks the real test failure as often or not the test has created additional data that assertAndEnsureClearDatabase() will throw an AssertionFailedError on. This causes the test failure AssertionFailedError to get replaced by the tearDown() instance.

      Attachments

        Activity

          People

            tomdz Thomas Dudziak
            tmpalmer Tom Palmer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: