[libpostgresql-jdbc-java] 02/06: Arrays.toString is a JDK1.5+ method, so we can't use it in this test. It's unnecessary anyways as we really want to compare the byte arrays, not their String forms.
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:19:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to tag REL8_0_321
in repository libpostgresql-jdbc-java.
commit e4b952f471e46cffb1f73c954d1f38ef83a170af
Author: Kris Jurka <books at ejurka.com>
Date: Wed Nov 14 02:47:38 2007 +0000
Arrays.toString is a JDK1.5+ method, so we can't use it in this
test. It's unnecessary anyways as we really want to compare the
byte arrays, not their String forms.
---
org/postgresql/test/jdbc2/UpdateableResultTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/org/postgresql/test/jdbc2/UpdateableResultTest.java b/org/postgresql/test/jdbc2/UpdateableResultTest.java
index 57de710..d20880f 100644
--- a/org/postgresql/test/jdbc2/UpdateableResultTest.java
+++ b/org/postgresql/test/jdbc2/UpdateableResultTest.java
@@ -250,21 +250,21 @@ public class UpdateableResultTest extends TestCase
assertEquals(2, rs.getInt(1));
assertEquals(string, rs.getString(2));
assertEquals(string, rs.getString(3));
- assertEquals(Arrays.toString(bytes), Arrays.toString(rs.getBytes(4)));
+ assertEquals(bytes, rs.getBytes(4));
rs.refreshRow();
assertEquals(2, rs.getInt(1));
assertEquals(string, rs.getString(2));
assertEquals(string, rs.getString(3));
- assertEquals(Arrays.toString(bytes), Arrays.toString(rs.getBytes(4)));
+ assertEquals(bytes, rs.getBytes(4));
rs.next();
assertEquals(3, rs.getInt(1));
assertEquals(string, rs.getString(2));
assertEquals(string, rs.getString(3));
- assertEquals(Arrays.toString(bytes), Arrays.toString(rs.getBytes(4)));
+ assertEquals(bytes, rs.getBytes(4));
rs.close();
stmt.close();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git
More information about the pkg-java-commits
mailing list