File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const val CHECK_QUERIES_PREFIX = "airbyte.connector.check.jdbc"
30
30
class JdbcCheckQueries {
31
31
32
32
// Micronaut configuration objects work better with mutable properties.
33
- lateinit var queries: List <String >
33
+ protected var queries: List <String > = emptyList()
34
34
35
35
private val log = KotlinLogging .logger {}
36
36
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ class JdbcCheckQueriesTest {
21
21
22
22
@Inject lateinit var checkQueries: JdbcCheckQueries
23
23
24
+ @Test
25
+ fun testEmpty () {
26
+ val empty = JdbcCheckQueries ()
27
+ Assertions .assertDoesNotThrow { h2.createConnection().use { empty.executeAll(it) } }
28
+ }
29
+
24
30
@Test
25
31
@Property(name = " $Q [0]" , value = " SELECT DATABASE_PATH() FROM DUAL" )
26
32
fun testPass () {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class JdbcMetadataQuerierTest {
23
23
JdbcMetadataQuerier .Factory (
24
24
selectQueryGenerator = H2SourceOperations (),
25
25
fieldTypeMapper = H2SourceOperations (),
26
- checkQueries = JdbcCheckQueries (). apply { queries = listOf () } ,
26
+ checkQueries = JdbcCheckQueries (),
27
27
constants = DefaultJdbcConstants (),
28
28
)
29
29
You can’t perform that action at this time.
0 commit comments