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 2008/07/23 10:39:31 UTC
[jira] Closed: (DERBY-3784) ImportExportTest doesn't detect lack of
expected errors
[ https://issues.apache.org/jira/browse/DERBY-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen closed DERBY-3784.
-------------------------------------
Resolution: Fixed
Fix Version/s: 10.5.0.0
Derby Info: (was: [Patch Available])
Thanks Kristian.
Committed revision 679027.
> ImportExportTest doesn't detect lack of expected errors
> -------------------------------------------------------
>
> Key: DERBY-3784
> URL: https://issues.apache.org/jira/browse/DERBY-3784
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.5.0.0
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Fix For: 10.5.0.0
>
> Attachments: d3784.diff
>
>
> I observed that ImportExportTest contains many test cases which do try/catch/assertSQLException, but none of them call fail() at the end of the try block. Example:
> public void testEarlyEndOfFile() throws Exception {
> Connection c = getConnection();
> try {
> doImportFromFile(c, "extin/EndOfFile.txt" , "T4" , null , null , null, 0);
> } catch (SQLException e) {
> assertSQLState("XIE0E", e);
> }
> }
> I think this means that if the expected exception isn't thrown the test still passes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.