TransactionTestDBProviderclass
new TransactionTestDBProvider<I, T>()
| Return | |
|---|---|
TransactionTestDBProvider<I, T> | In-memory provider for testing wrapping providers' transact() — runs the callback directly against itself. |
In-memory provider for testing wrapping providers' transact() — runs the callback directly against itself.
- No atomicity or rollback: writes apply immediately and are kept even if the callback throws.
- Use it as the
sourceof a wrapping provider to test how the wrapper behaves inside transactions, not to test transaction semantics themselves.