Skip to content

Commit

Permalink
Remove use of deprecated assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubb committed Mar 31, 2021
1 parent 4150bb9 commit 5c62d08
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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";

Expand Down Expand Up @@ -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"});

}
}
Expand Down

0 comments on commit 5c62d08

Please sign in to comment.