diff --git a/driver/src/test/java/com/impossibl/postgres/jdbc/CiTextTest.java b/driver/src/test/java/com/impossibl/postgres/jdbc/CiTextTest.java index 96a48c179..c4fb488e9 100644 --- a/driver/src/test/java/com/impossibl/postgres/jdbc/CiTextTest.java +++ b/driver/src/test/java/com/impossibl/postgres/jdbc/CiTextTest.java @@ -41,6 +41,7 @@ import org.junit.Before; import org.junit.Test; +import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assume.assumeTrue; @@ -71,6 +72,7 @@ public void after() throws SQLException { @Test public void testCiTextInSchema() throws SQLException { + assumeTrue("testnoexts database is created", TestUtil.isDatabaseCreated("testnoexts")); String url = "jdbc:pgsql://" + TestUtil.getServer() + ":" + TestUtil.getPort() + "/testnoexts"; @@ -102,7 +104,7 @@ public void testCiTextInSchema() throws SQLException { try (ResultSet rs = stmt.executeQuery("SELECT * FROM citester.test")) { assertTrue(rs.next()); - assertEquals(rs.getObject("names", String[].class), new String[] {"test"}); + assertArrayEquals(rs.getObject("names", String[].class), new String[] {"test"}); } }