Commit c8789c3
feat(s1): business tests — 5 E2E payment lifecycle flows (STA-116)
Add PaymentLifecycleTest with Temporal TestWorkflowEnvironment, real DB
(TestContainers), and mocked S2/S6 Feign clients. Covers happy path,
compliance rejection, FX lock failure, cancel-after-lock compensation,
and idempotency. Fix latent bug: PaymentWorkflowImpl used invalid
"FX_LOCKING" state string in failed event requests (no such PaymentState
enum value), causing silent event publishing failures.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8dafc09 commit c8789c3
5 files changed
Lines changed: 511 additions & 3 deletions
File tree
- payment-orchestrator/payment-orchestrator/src
- business-test/java/com/stablecoin/payments/orchestrator
- main/java/com/stablecoin/payments/orchestrator
- application/config
- domain/workflow
- test/java/com/stablecoin/payments/orchestrator/domain/workflow
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments