Return-Path: X-Original-To: apmail-db-derby-commits-archive@www.apache.org Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E53F7700 for ; Fri, 22 Jul 2011 07:03:41 +0000 (UTC) Received: (qmail 87064 invoked by uid 500); 22 Jul 2011 07:03:32 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 86840 invoked by uid 500); 22 Jul 2011 07:03:20 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 86785 invoked by uid 99); 22 Jul 2011 07:03:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 07:03:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 07:03:16 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id EC84623888FE; Fri, 22 Jul 2011 07:02:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1149482 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java Date: Fri, 22 Jul 2011 07:02:55 -0000 To: derby-commits@db.apache.org From: kahatlen@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110722070255.EC84623888FE@eris.apache.org> Author: kahatlen Date: Fri Jul 22 07:02:54 2011 New Revision: 1149482 URL: http://svn.apache.org/viewvc?rev=1149482&view=rev Log: DERBY-1903: Convert largedata/LobLimits.java to junit Make sure the stream opened by compareBlobToFile() is closed. Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java?rev=1149482&r1=1149481&r2=1149482&view=diff ============================================================================== --- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java (original) +++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/largedata/LobLimitsTest.java Fri Jul 22 07:02:54 2011 @@ -817,14 +817,7 @@ public class LobLimitsTest extends BaseJ FileInputStream file = PrivilegedFileOpsForTests .getFileInputStream(new File(filename)); - int l = 0; - int b = 0; - do { - l = lobstream.read(); - b = file.read(); - assertEquals("FAIL -- MISMATCH in data stored (" + l + ") versus" + - "data retrieved from file(" + b + "). ", b, l); - } while (l != -1 && b != -1); + assertEquals(file, lobstream); } private void deleteTable(String table,