-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
alexradzin
committed
Jun 2, 2024
1 parent
1bd18d8
commit 40d9d86
Showing
3 changed files
with
24 additions
and
6 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
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
22 changes: 22 additions & 0 deletions
22
src/test/java/com/firebolt/jdbc/type/FireboltDataTypeTest.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,22 @@ | ||
package com.firebolt.jdbc.type; | ||
|
||
|
||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.EnumSource; | ||
|
||
import java.sql.JDBCType; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
|
||
class FireboltDataTypeTest { | ||
/** | ||
* This test validates that {@link FireboltDataType#getSqlType()} return standard type defined in {@link java.sql.Types} and {@link JDBCType}. | ||
* @param type - the type | ||
*/ | ||
@ParameterizedTest | ||
@EnumSource(FireboltDataType.class) | ||
void sqlType(FireboltDataType type) { | ||
// assert here is just to satisfy static code analysis. valueOf() either succeeds or throws IllegalArgumentException | ||
assertNotNull(JDBCType.valueOf(type.getSqlType())); | ||
} | ||
} |