Skip to content

Commit

Permalink
Try to fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenn committed Dec 28, 2022
1 parent 8c2fad2 commit 3fdc32a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@
<version>2.14.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down
7 changes: 4 additions & 3 deletions src/test/java/org/sqlite/driver/RSMetaDataTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 3fdc32a

Please sign in to comment.