[libpostgresql-jdbc-java] 06/12: 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:20:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to tag REL8_2_507
in repository libpostgresql-jdbc-java.
commit c663efb3f6df8e3d967c8b0675ded5d0a3197fcf
Author: Kris Jurka <books at ejurka.com>
Date: Wed Nov 14 02:47:21 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 b801ec9..d87080e 100644
--- a/org/postgresql/test/jdbc2/UpdateableResultTest.java
+++ b/org/postgresql/test/jdbc2/UpdateableResultTest.java
@@ -256,21 +256,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