Skip to content

Commit c8789c3

Browse files
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

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.stablecoin.payments.orchestrator;
2+
3+
import org.junit.jupiter.api.Tag;
4+
5+
/**
6+
* Base class for business (E2E) tests.
7+
* <p>
8+
* Extends {@link AbstractIntegrationTest} to inherit TestContainers setup and
9+
* security configuration. Business tests exercise full lifecycle flows through
10+
* the real Spring context with Temporal {@code TestWorkflowEnvironment}.
11+
*/
12+
@Tag("business")
13+
public abstract class AbstractBusinessTest extends AbstractIntegrationTest {
14+
}

0 commit comments

Comments
 (0)