X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EC4D4D1B1EC for ; Mon, 19 Jul 2004 20:53:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60778-07 for ; Mon, 19 Jul 2004 23:53:42 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 2028FD1B1CF for ; Mon, 19 Jul 2004 20:53:37 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1Bmhww-0007Fq-00 for ; Tue, 20 Jul 2004 11:53:38 +1200 Message-ID: <40FC5F00.3060803@opencloud.com> Date: Tue, 20 Jul 2004 11:53:36 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "pgsql-jdbc@postgresql.org" Subject: patch: support older junit versions Content-Type: multipart/mixed; boundary="------------060300060004040206050007" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200407/234 X-Sequence-Number: 10618 This is a multi-part message in MIME format. --------------060300060004040206050007 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit My version of junit (3.7) doesn't have assertFalse. ArrayTest uses it in a couple of places. This patch changes assertFalse(condition) to assertTrue(!condition). -O --------------060300060004040206050007 Content-Type: text/plain; name="pgjdbc-support-old-junit.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pgjdbc-support-old-junit.txt" Index: org/postgresql/test/jdbc2/ArrayTest.java =================================================================== RCS file: /usr/local/cvsroot/pgjdbc/pgjdbc/org/postgresql/test/jdbc2/ArrayTest.java,v retrieving revision 1.1 diff -c -r1.1 ArrayTest.java *** org/postgresql/test/jdbc2/ArrayTest.java 15 Jul 2004 10:10:30 -0000 1.1 --- org/postgresql/test/jdbc2/ArrayTest.java 19 Jul 2004 23:45:26 -0000 *************** *** 81,87 **** assertTrue(arrrs.next()); assertEquals(3,arrrs.getInt(1)); assertEquals(3,arrrs.getInt(2)); ! assertFalse(arrrs.next()); assertTrue(arrrs.previous()); assertEquals(3,arrrs.getInt(2)); arrrs.first(); --- 81,87 ---- assertTrue(arrrs.next()); assertEquals(3,arrrs.getInt(1)); assertEquals(3,arrrs.getInt(2)); ! assertTrue(!arrrs.next()); assertTrue(arrrs.previous()); assertEquals(3,arrrs.getInt(2)); arrrs.first(); *************** *** 106,112 **** assertTrue(arrrs.next()); assertEquals(3, arrrs.getInt(1)); assertEquals("fa\"b", arrrs.getString(2)); ! assertFalse(arrrs.next()); arrrs.close(); rs.close(); --- 106,112 ---- assertTrue(arrrs.next()); assertEquals(3, arrrs.getInt(1)); assertEquals("fa\"b", arrrs.getString(2)); ! assertTrue(!arrrs.next()); arrrs.close(); rs.close(); --------------060300060004040206050007--