[ 
https://issues.apache.org/jira/browse/FINERACT-2747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Saghy updated FINERACT-2747:
---------------------------------
    Fix Version/s: 1.16.0

> 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
>            Assignee: Shubham Chaudhary
>            Priority: Minor
>             Fix For: 1.16.0
>
>
> 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)

Reply via email to