Commit 3cd7e33
Add 56 JDBC spec integration tests with comprehensive DatabaseMetaData coverage (#1216)
## Summary
- Adds **56 new integration tests** across 5 test files to close JDBC
spec coverage gaps
- Includes comprehensive **DatabaseMetaData testing** (~180 assertions
covering all boolean/int/string property methods)
- All tests use the WireMock record-replay fake service infrastructure
with both SEA and Thrift recordings
### New tests by file:
| File | New Tests | Coverage Area |
|------|-----------|--------------|
| `MetadataIntegrationTests` | 25 | All boolean properties, string/int
properties, ResultSet-returning methods (getTypeInfo, getProcedures,
getFunctions, getImportedKeys, getExportedKeys, getCrossReference,
etc.), wrapper/lifecycle |
| `ResultSetIntegrationTests` | 10 | Type getters: getBoolean, getByte,
getShort, getLong, getFloat, getDouble, getBigDecimal, getDate,
getTimestamp, getObject |
| `PreparedStatementIntegrationTests` | 7 | Type setters: setBoolean,
setLong, setFloat, setDouble, setBigDecimal, setDate, setTimestamp |
| `ExecutionIntegrationTests` | 4 | Statement utilities: fetchDirection,
enquoteLiteral, enquoteIdentifier, isSimpleIdentifier |
| `ConnectionIntegrationTests` | 3 | Connection attributes: autoCommit
default, isReadOnly, transactionIsolation |
### Verification results:
- **SEA REPLAY**: All tests pass (0 failures)
- **Thrift REPLAY**: All tests pass (8 metadata tests skipped as
SEA-only due to Thrift recording limitations)
## Test plan
- [x] All 56 new tests pass in SEA REPLAY mode
- [x] All tests pass in Thrift REPLAY mode (with expected skips)
- [x] No regressions in existing tests
- [x] WireMock recordings committed for both SEA and Thrift modes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
NO_CHANGELOG=true
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7588640 commit 3cd7e33
668 files changed
Lines changed: 24164 additions & 0 deletions
File tree
- src/test
- java/com/databricks/jdbc/integration/fakeservice/tests
- resources
- __files
- cloudfetchapi
- metadataintegrationtests
- testdatabasemetadata_getcolumns/mappings
- testdatabasemetadata_getfunctions/mappings
- testdatabasemetadata_getprimarykeys/mappings
- testdatabasemetadata_getschemas_withcatalog/mappings
- preparedstatementintegrationtests
- testsetbigdecimal/mappings
- testsetboolean/mappings
- testsetdate/mappings
- testsetdouble/mappings
- testsetfloat/mappings
- testsetlong/mappings
- testsettimestamp/mappings
- resultsetintegrationtests
- testgetbigdecimal/mappings
- testgetboolean/mappings
- testgetbyte/mappings
- testgetdate/mappings
- testgetdouble/mappings
- testgetfloat/mappings
- testgetlong/mappings
- testgetobject_withtypeconversion/mappings
- testgetshort/mappings
- testgettimestamp/mappings
- sqlexecapi
- connectionintegrationtests
- testautocommit_defaultistrue/mappings
- testgettransactionisolation/mappings
- testisreadonly_default/mappings
- executionintegrationtests
- teststatement_enquoteidentifier/mappings
- teststatement_enquoteliteral/mappings
- teststatement_fetchdirection/mappings
- teststatement_issimpleidentifier/mappings
- metadataintegrationtests
- testdatabasemetadata_allbooleanproperties/mappings
- testdatabasemetadata_allstringandintproperties/mappings
- testdatabasemetadata_getattributes/mappings
- testdatabasemetadata_getbestrowidentifier/mappings
- testdatabasemetadata_getclientinfoproperties/mappings
- testdatabasemetadata_getcolumnprivileges/mappings
- testdatabasemetadata_getcolumns/mappings
- testdatabasemetadata_getconnection/mappings
- testdatabasemetadata_getcrossreference/mappings
- testdatabasemetadata_getdriverversion/mappings
- testdatabasemetadata_getexportedkeys/mappings
- testdatabasemetadata_getfunctioncolumns/mappings
- testdatabasemetadata_getfunctions/mappings
- testdatabasemetadata_getimportedkeys/mappings
- testdatabasemetadata_getindexinfo/mappings
- testdatabasemetadata_getprimarykeys/mappings
- testdatabasemetadata_getprocedurecolumns/mappings
- testdatabasemetadata_getprocedures/mappings
- testdatabasemetadata_getpseudocolumns/mappings
- testdatabasemetadata_getrowidlifetime/mappings
- testdatabasemetadata_getschemas_withcatalog/mappings
- testdatabasemetadata_getsupertables/mappings
- testdatabasemetadata_getsupertypes/mappings
- testdatabasemetadata_gettableprivileges/mappings
- testdatabasemetadata_gettabletypes/mappings
- testdatabasemetadata_gettypeinfo/mappings
- testdatabasemetadata_getudts/mappings
- testdatabasemetadata_geturl/mappings
- testdatabasemetadata_getversioncolumns/mappings
- testdatabasemetadata_supportsresultsettype/mappings
- testdatabasemetadata_supportstransactions/mappings
- testdatabasemetadata_wrappermethods/mappings
- preparedstatementintegrationtests
- testsetbigdecimal/mappings
- testsetboolean/mappings
- testsetdate/mappings
- testsetdouble/mappings
- testsetfloat/mappings
- testsetlong/mappings
- testsettimestamp/mappings
- resultsetintegrationtests
- testgetbigdecimal/mappings
- testgetboolean/mappings
- testgetbyte/mappings
- testgetdate/mappings
- testgetdouble/mappings
- testgetfloat/mappings
- testgetlong/mappings
- testgetobject_withtypeconversion/mappings
- testgetshort/mappings
- testgettimestamp/mappings
- thriftserverapi
- connectionintegrationtests
- testautocommit_defaultistrue/mappings
- testgettransactionisolation/mappings
- testisreadonly_default/mappings
- executionintegrationtests
- teststatement_enquoteidentifier/mappings
- teststatement_enquoteliteral/mappings
- teststatement_fetchdirection/mappings
- teststatement_issimpleidentifier/mappings
- metadataintegrationtests
- testdatabasemetadata_allbooleanproperties/mappings
- testdatabasemetadata_allstringandintproperties/mappings
- testdatabasemetadata_getattributes/mappings
- testdatabasemetadata_getbestrowidentifier/mappings
- testdatabasemetadata_getclientinfoproperties/mappings
- testdatabasemetadata_getcolumnprivileges/mappings
- testdatabasemetadata_getcolumns/mappings
- testdatabasemetadata_getconnection/mappings
- testdatabasemetadata_getcrossreference/mappings
- testdatabasemetadata_getdriverversion/mappings
- testdatabasemetadata_getexportedkeys/mappings
- testdatabasemetadata_getfunctioncolumns/mappings
- testdatabasemetadata_getfunctions/mappings
- testdatabasemetadata_getimportedkeys/mappings
- testdatabasemetadata_getprimarykeys/mappings
- testdatabasemetadata_getprocedurecolumns/mappings
- testdatabasemetadata_getprocedures/mappings
- testdatabasemetadata_getpseudocolumns/mappings
- testdatabasemetadata_getrowidlifetime/mappings
- testdatabasemetadata_getschemas_withcatalog/mappings
- testdatabasemetadata_getsupertables/mappings
- testdatabasemetadata_getsupertypes/mappings
- testdatabasemetadata_gettableprivileges/mappings
- testdatabasemetadata_gettabletypes/mappings
- testdatabasemetadata_gettypeinfo/mappings
- testdatabasemetadata_getudts/mappings
- testdatabasemetadata_geturl/mappings
- testdatabasemetadata_getversioncolumns/mappings
- testdatabasemetadata_supportsresultsettype/mappings
- testdatabasemetadata_supportstransactions/mappings
- testdatabasemetadata_wrappermethods/mappings
- preparedstatementintegrationtests
- testsetbigdecimal/mappings
- testsetboolean/mappings
- testsetdate/mappings
- testsetdouble/mappings
- testsetfloat/mappings
- testsetlong/mappings
- testsettimestamp/mappings
- resultsetintegrationtests
- testgetbigdecimal/mappings
- testgetboolean/mappings
- testgetbyte/mappings
- testgetdate/mappings
- testgetdouble/mappings
- testgetfloat/mappings
- testgetlong/mappings
- testgetobject_withtypeconversion/mappings
- testgetshort/mappings
- testgettimestamp/mappings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
116 | 127 | | |
117 | 128 | | |
118 | 129 | | |
| |||
124 | 135 | | |
125 | 136 | | |
126 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
127 | 148 | | |
128 | 149 | | |
129 | 150 | | |
| |||
159 | 180 | | |
160 | 181 | | |
161 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
162 | 199 | | |
163 | 200 | | |
164 | 201 | | |
| |||
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
281 | 332 | | |
282 | 333 | | |
283 | 334 | | |
| |||
Lines changed: 618 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 191 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
292 | 427 | | |
293 | 428 | | |
294 | 429 | | |
| |||
350 | 485 | | |
351 | 486 | | |
352 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
353 | 544 | | |
354 | 545 | | |
355 | 546 | | |
| |||
0 commit comments