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

devi pathak updated FINERACT-2539:
----------------------------------
    Labels: gsoc-fineract-evidence infrastructure test  (was: 
gsoc-fineract-evidence test)

> Add unit tests for MathUtil utility class
> -----------------------------------------
>
>                 Key: FINERACT-2539
>                 URL: https://issues.apache.org/jira/browse/FINERACT-2539
>             Project: Apache Fineract
>          Issue Type: Improvement
>            Reporter: devi pathak
>            Priority: Major
>              Labels: gsoc-fineract-evidence, infrastructure, test
>
> The MathUtil utility class currently lacks comprehensive unit test coverage.
> This improvement introduces unit tests to verify the behavior of several
> core utility methods including:
> - null handling helpers (nullToDefault, nullToZero, zeroToNull)
> - comparison helpers (isGreaterThanZero, isLessThanZero)
> - arithmetic helpers (add, subtract, abs)
> - BigDecimal utilities
> - percentage calculation helpers
> - trailing zero normalization
> The tests cover typical scenarios as well as important edge cases such as
> null values, zero values, and negative values.
> Adding these tests improves reliability and increases code coverage for
> shared mathematical utilities used across the platform.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to