Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 38677 invoked from network); 23 Jul 2008 06:49:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2008 06:49:23 -0000 Received: (qmail 68857 invoked by uid 500); 23 Jul 2008 06:49:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 68820 invoked by uid 500); 23 Jul 2008 06:49:22 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 68809 invoked by uid 99); 23 Jul 2008 06:49:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jul 2008 23:49:22 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 06:48:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D96E0234C178 for ; Tue, 22 Jul 2008 23:48:31 -0700 (PDT) Message-ID: <299257662.1216795711889.JavaMail.jira@brutus> Date: Tue, 22 Jul 2008 23:48:31 -0700 (PDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3784) ImportExportTest doesn't detect lack of expected errors In-Reply-To: <552493291.1216417291836.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615896#action_12615896 ] Kristian Waagan commented on DERBY-3784: ---------------------------------------- I applied the patch and ran the three tests. No new failures. +1 to commit. > 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 > 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.