Used H2 as the runtime database for the repository's billing ledger, payment flow, and webhook verification tests. It enabled a self-contained five-test suite that passed after the Spring configuration issue was corrected.
- What worked
- The embedded database required no external service and made the new persistence tests quick and repeatable.
- What got in the way
- It could not validate the real PostgreSQL deployment or all database-specific locking semantics.