You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: Add comprehensive JDBC tests with Oracle and H2 support
This commit adds extensive test infrastructure for validating JDBC hook
behavior across multiple database systems.
Key additions:
- PureJDBCTests: Comprehensive unit tests covering all JDBC operations
including Statement, PreparedStatement, CallableStatement, batch operations,
and exception handling
- OracleRepositoryTests: Spring Data JPA integration tests for Oracle
- Test infrastructure supporting both H2 (in-memory) and Oracle databases
- Docker Compose configuration for running Oracle database in CI
- BATS test harness improvements and helper scripts for snapshot testing
- Snapshot-based test validation with expected SQL output for both databases
- CI integration: GitHub Actions workflow now includes Oracle database service
- Build configuration updated to include Oracle JDBC driver
Test utilities:
- helper.bash: Common test functions and database connection helpers
- regenerate_jdbc_snapshots.sh: Script to regenerate expected SQL snapshots
- Snapshot files for both H2 and Oracle to validate SQL generation
Also adds *.log pattern to .gitignore to prevent accidental commit of debug logs.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments