pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
patch: support older junit versions
2+ messages / 2 participants
[nested] [flat]

* patch: support older junit versions
@ 2004-07-19 23:53 Oliver Jowett <oliver@opencloud.com>
  2004-07-20 00:25 ` Re: patch: support older junit versions Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Oliver Jowett @ 2004-07-19 23:53 UTC (permalink / raw)
  To: pgsql-jdbc

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();
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: patch: support older junit versions
  2004-07-19 23:53 patch: support older junit versions Oliver Jowett <oliver@opencloud.com>
@ 2004-07-20 00:25 ` Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Kris Jurka @ 2004-07-20 00:25 UTC (permalink / raw)
  To: Oliver Jowett <oliver@opencloud.com>; +Cc: pgsql-jdbc



On Tue, 20 Jul 2004, Oliver Jowett wrote:

> 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).
> 

Applied.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-07-20 00:25 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-07-19 23:53 patch: support older junit versions Oliver Jowett <oliver@opencloud.com>
2004-07-20 00:25 ` Kris Jurka <books@ejurka.com>

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