[
https://issues.apache.org/jira/browse/FINERACT-2747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18102771#comment-18102771
]
Shubham Chaudhary commented on FINERACT-2747:
---------------------------------------------
Hello, I would like to work on this issue as my first contribution to
Apache Fineract. I plan to add focused JUnit 5 tests without changing
production behaviour. Please let me know if this scope is appropriate.
> Add unit tests for FrequencyTypeUtil
> ------------------------------------
>
> Key: FINERACT-2747
> URL: https://issues.apache.org/jira/browse/FINERACT-2747
> Project: Apache Fineract
> Issue Type: Improvement
> Components: Test
> Reporter: Shubham Chaudhary
> Priority: Minor
>
> FrequencyTypeUtil provides comparison logic for frequencies expressed in
> DAYS, WEEKS, MONTHS, and YEARS, but currently has no dedicated unit tests.
> Adding unit tests would document the existing expected behaviour and protect
> the frequency conversion and comparison logic against regressions.
> Proposed coverage:
> 1. Compare frequencies having the same frequency type.
> 2. Compare equivalent frequencies using different frequency types.
> 3. Verify comparison when the first frequency is smaller.
> 4. Verify comparison when the first frequency is larger.
> 5. Cover DAYS, WEEKS, MONTHS, and YEARS.
> 6. Verify the current behaviour for unsupported frequency types.
> This ticket proposes test coverage only and does not change production
> behaviour.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)