You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Adam Saghy (Jira)" <ji...@apache.org> on 2026/10/18 17:29:00 UTC

[jira] [Resolved] (FINERACT-2747) Add unit tests for FrequencyTypeUtil

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

Adam Saghy resolved FINERACT-2747.
----------------------------------
    Resolution: Fixed

> 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)