Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh committed Oct 17, 2024
1 parent d1eb611 commit 2f1841e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
15 changes: 15 additions & 0 deletions schemacrawler-dbtest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,27 @@
<skip.signing.artifacts>true</skip.signing.artifacts>
</properties>
<dependencies>

<dependency>
<groupId>us.fatehi</groupId>
<artifactId>schemacrawler-jdbc-drivers</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>us.fatehi</groupId>
<artifactId>schemacrawler-testdb</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>us.fatehi</groupId>
<artifactId>schemacrawler-jdbc-drivers</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>us.fatehi</groupId>
<artifactId>schemacrawler-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

public final class SqlServerTestUtility {

@SuppressWarnings("resource")
public static JdbcDatabaseContainer<?> newSqlServer2019Container() {
return newSqlServerContainer("2019-CU28-ubuntu-20.04");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,4 @@ public void testPostgreSQLPortable(final TestContext testContext) throws Excepti
outputOf(executableExecution(getDataSource(), executableDetails)),
hasSameContentAs(classpathResource(expectedResource)));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void checkResultSet() throws SQLException {
@Test
public void getAvailableJdbcDrivers() throws SQLException {
final Collection<Driver> drivers = DatabaseUtility.getAvailableJdbcDrivers();
assertThat(drivers.size(), is(2));
assertThat(drivers.size(), is(3));
assertThat(
drivers,
everyItem(is(anyOf(instanceOf(Driver.class), instanceOf(TestDatabaseDriver.class)))));
Expand Down

0 comments on commit 2f1841e

Please sign in to comment.