pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: patch: support older junit versions
Date: Tue, 20 Jul 2004 11:53:36 +1200
Message-ID: <40FC5F00.3060803@opencloud.com> (raw)

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

Attachments:

pgjdbc-support-old-junit.txt (text/plain, 1.3K) download 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();

view thread (2+ messages)  latest in thread

Message-ID: <40FC5F00.3060803@opencloud.com>
Permalink:  ../40FC5F00.3060803@opencloud.com/
Also on:    postgresql.org/message-id/40FC5F00.3060803@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com
  Subject: Re: patch: support older junit versions
  In-Reply-To: <40FC5F00.3060803@opencloud.com>
  References: <40FC5F00.3060803@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox