You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2011/03/09 09:17:59 UTC

[jira] Updated: (DERBY-5112) ImportExportTest depends on implicit ordering of test cases

     [ https://issues.apache.org/jira/browse/DERBY-5112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5112:
--------------------------------------

    Attachment: derby-5112-1a.diff

The attached patch moves the calls to resetTable() into the setUp() method so that all the test cases have the same initial state, regardless of the ordering of the test cases.

> ImportExportTest depends on implicit ordering of test cases
> -----------------------------------------------------------
>
>                 Key: DERBY-5112
>                 URL: https://issues.apache.org/jira/browse/DERBY-5112
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.8.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: derby-5112-1a.diff
>
>
> 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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira