-
-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for number of loaded database drivers
- Loading branch information
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
schemacrawler-dbtest/src/test/java/schemacrawler/integration/test/DatabaseDriverTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package schemacrawler.integration.test; | ||
|
||
import static org.hamcrest.CoreMatchers.is; | ||
import static org.hamcrest.MatcherAssert.assertThat; | ||
import java.sql.Driver; | ||
import java.util.Collection; | ||
import org.junit.jupiter.api.Test; | ||
import us.fatehi.utility.database.DatabaseUtility; | ||
|
||
public class DatabaseDriverTest { | ||
|
||
@Test | ||
public void availableJDBCDrivers() throws Exception { | ||
final Collection<Driver> availableJDBCDrivers = DatabaseUtility.getAvailableJdbcDrivers(); | ||
final int numJDBCDrivers = availableJDBCDrivers.size(); | ||
assertThat( | ||
"Number of of avilable JDBC drivers is not correct - found " + numJDBCDrivers, | ||
numJDBCDrivers == 20, | ||
is(true)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters