Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5112

ImportExportTest depends on implicit ordering of test cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.8.1.2
    • 10.8.1.2
    • Test
    • None
    • Regression Test Failure

    Description

      Most of the test cases in ImportExportTest call resetTables() as the first thing they do. Some don't, probably because they usually run so early that the tables haven't been modified yet. If one of the test cases that don't call resetTables() doesn't run as early as expected, it may fail.

      Seen in the nightly testing:

      http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/testlog/lin/1078855-suitesAll_diff.txt

      14) testEmptyTableWithDelimitedFormat(org.apache.derbyTesting.functionTests.tests.tools.ImportExportTest)junit.framework.AssertionFailedError: expected:<4> but was:<8>
      at org.apache.derbyTesting.functionTests.tests.tools.ImportExportTest.doImportAndVerify(ImportExportTest.java:402)
      at org.apache.derbyTesting.functionTests.tests.tools.ImportExportTest.doImportAndExport(ImportExportTest.java:338)
      at org.apache.derbyTesting.functionTests.tests.tools.ImportExportTest.testEmptyTableWithDelimitedFormat(ImportExportTest.java:126)

      Attachments

        1. derby-5112-1a.diff
          3 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: