From 3fdc32ae57bdee1cc64dd1d770d685fc6ff48040 Mon Sep 17 00:00:00 2001 From: gwenn Date: Wed, 28 Dec 2022 21:32:06 +0100 Subject: [PATCH] Try to fix CI build --- pom.xml | 12 ++++++++++++ src/test/java/org/sqlite/driver/RSMetaDataTest.java | 7 ++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index a958c8e..6c9fc10 100644 --- a/pom.xml +++ b/pom.xml @@ -66,6 +66,18 @@ 2.14.0 provided + + org.hamcrest + hamcrest + 2.2 + test + + + org.hamcrest + hamcrest-library + 2.2 + test + junit junit diff --git a/src/test/java/org/sqlite/driver/RSMetaDataTest.java b/src/test/java/org/sqlite/driver/RSMetaDataTest.java index 10125c0..bc7f30f 100644 --- a/src/test/java/org/sqlite/driver/RSMetaDataTest.java +++ b/src/test/java/org/sqlite/driver/RSMetaDataTest.java @@ -38,6 +38,7 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY import java.sql.Statement; import java.sql.Types; +import static org.hamcrest.text.IsEqualIgnoringCase.equalToIgnoringCase; import static org.junit.Assert.*; public class RSMetaDataTest { @@ -76,9 +77,9 @@ public void columns() throws SQLException { assertEquals(Types.INTEGER, meta.getColumnType(1)); assertEquals(Types.VARCHAR, meta.getColumnType(2)); assertEquals(Types.VARCHAR, meta.getColumnType(3)); - assertEquals("integer", meta.getColumnTypeName(1)); - assertEquals("text", meta.getColumnTypeName(2)); - assertEquals("text", meta.getColumnTypeName(3)); + assertThat(meta.getColumnTypeName(1), equalToIgnoringCase("integer")); + assertThat(meta.getColumnTypeName(2), equalToIgnoringCase("text")); + assertThat(meta.getColumnTypeName(3), equalToIgnoringCase("text")); assertTrue(meta.isAutoIncrement(1)); assertFalse(meta.isAutoIncrement(2)); assertFalse(meta.isAutoIncrement(3));