Derby
  1. Derby
  2. DERBY-5112

ImportExportTest depends on implicit ordering of test cases

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.8.1.2
    • Fix Version/s: 10.8.1.2
    • Component/s: Test
    • Labels:
      None
    • Bug behavior facts:
      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)

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

        Activity

        Knut Anders Hatlen created issue -
        Knut Anders Hatlen made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Knut Anders Hatlen made changes -
        Attachment derby-5112-1a.diff [ 12473107 ]
        Knut Anders Hatlen made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Bug behavior facts [Regression Test Failure]
        Fix Version/s 10.8.0.0 [ 12315561 ]
        Resolution Fixed [ 1 ]
        Rick Hillegas made changes -
        Affects Version/s 10.8.1.1 [ 12316356 ]
        Affects Version/s 10.8.1.0 [ 12315561 ]
        Fix Version/s 10.8.1.1 [ 12316356 ]
        Fix Version/s 10.8.1.0 [ 12315561 ]
        Rick Hillegas made changes -
        Affects Version/s 10.8.1.2 [ 12316362 ]
        Affects Version/s 10.8.1.1 [ 12316356 ]
        Fix Version/s 10.8.1.1 [ 12316356 ]
        Fix Version/s 10.8.1.2 [ 12316362 ]
        Knut Anders Hatlen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Gavin made changes -
        Workflow jira [ 12601128 ] Default workflow, editable Closed status [ 12801134 ]

          People

          • Assignee:
            Knut Anders Hatlen
            Reporter:
            Knut Anders Hatlen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development