[
https://issues.apache.org/jira/browse/FINERACT-2620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Krishna Mewara updated FINERACT-2620:
-------------------------------------
Description:
h3. New files
* {{FeignTestConstants}} — shared test constants (date format, locale) across
domains
* {{FeignSavingsApi}} — readable wrapper over generated SavingsAccountApi
(e.g. {{handleCommands6}} → {{{}approveSavings{}}})
* {{FeignSavingsProductHelper}} — savings product creation via
SavingsProductApi
* {{FeignSavingsHelper}} — account lifecycle: submit, approve, activate,
close, query
* {{FeignSavingsTransactionHelper}} — deposit and withdrawal operations
* {{SavingsTestData}} — savings-specific constants and enums
* {{SavingsRequestBuilders}} — typed request object factories
* {{FeignSavingsTestBase}} — abstract base wiring all helpers (mirrors
{{{}FeignLoanTestBase{}}})
* {{SavingsTestLifecycleExtension}} — JUnit 5 cleanup extension using
Feign-native {{DefaultApi}} (zero legacy dependency)
* {{FeignSavingsLifecycleTest}} — 8 end-to-end test cases covering product
creation, application lifecycle, deposit/withdraw, balance verification, and
account closure
h3. Key design points
* Zero RestAssured or Retrofit imports — pure Feign throughout
* Idempotent test cleanup handles already-deleted accounts gracefully
* {{LoanTestData}} updated to delegate shared constants to
{{FeignTestConstants}} (source-compatible)
* No modifications to existing legacy helpers or tests
was:
h3. New files (10 new, 1 modified)
* {{FeignTestConstants}} — shared test constants (date format, locale) across
domains
* {{FeignSavingsApi}} — readable wrapper over generated SavingsAccountApi (e.g.
{{handleCommands6}} → {{approveSavings}})
* {{FeignSavingsProductHelper}} — savings product creation via SavingsProductApi
* {{FeignSavingsHelper}} — account lifecycle: submit, approve, activate, close,
query
* {{FeignSavingsTransactionHelper}} — deposit and withdrawal operations
* {{SavingsTestData}} — savings-specific constants and enums
* {{SavingsRequestBuilders}} — typed request object factories
* {{FeignSavingsTestBase}} — abstract base wiring all helpers (mirrors
{{FeignLoanTestBase}})
* {{SavingsTestLifecycleExtension}} — JUnit 5 cleanup extension using
Feign-native {{DefaultApi}} (zero legacy dependency)
* {{FeignSavingsLifecycleTest}} — 8 end-to-end test cases covering product
creation, application lifecycle, deposit/withdraw, balance verification, and
account closure
h3. Key design points
* Zero RestAssured or Retrofit imports — pure Feign throughout
* Idempotent test cleanup handles already-deleted accounts gracefully
* {{LoanTestData}} updated to delegate shared constants to
{{FeignTestConstants}} (source-compatible)
* No modifications to existing legacy helpers or tests
> Adds type-safe Feign-based helpers and integration tests for the Savings
> domain
> -------------------------------------------------------------------------------
>
> Key: FINERACT-2620
> URL: https://issues.apache.org/jira/browse/FINERACT-2620
> Project: Apache Fineract
> Issue Type: Improvement
> Components: Test
> Reporter: Krishna Mewara
> Priority: Trivial
> Labels: feign-migration, test-infrastructure
>
> h3. New files
> * {{FeignTestConstants}} — shared test constants (date format, locale)
> across domains
> * {{FeignSavingsApi}} — readable wrapper over generated SavingsAccountApi
> (e.g. {{handleCommands6}} → {{{}approveSavings{}}})
> * {{FeignSavingsProductHelper}} — savings product creation via
> SavingsProductApi
> * {{FeignSavingsHelper}} — account lifecycle: submit, approve, activate,
> close, query
> * {{FeignSavingsTransactionHelper}} — deposit and withdrawal operations
> * {{SavingsTestData}} — savings-specific constants and enums
> * {{SavingsRequestBuilders}} — typed request object factories
> * {{FeignSavingsTestBase}} — abstract base wiring all helpers (mirrors
> {{{}FeignLoanTestBase{}}})
> * {{SavingsTestLifecycleExtension}} — JUnit 5 cleanup extension using
> Feign-native {{DefaultApi}} (zero legacy dependency)
> * {{FeignSavingsLifecycleTest}} — 8 end-to-end test cases covering product
> creation, application lifecycle, deposit/withdraw, balance verification, and
> account closure
> h3. Key design points
> * Zero RestAssured or Retrofit imports — pure Feign throughout
> * Idempotent test cleanup handles already-deleted accounts gracefully
> * {{LoanTestData}} updated to delegate shared constants to
> {{FeignTestConstants}} (source-compatible)
> * No modifications to existing legacy helpers or tests
--
This message was sent by Atlassian Jira
(v8.20.10#820010)