You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Maksym Korshun (Jira)" <ji...@apache.org> on 2026/07/26 21:02:00 UTC

[jira] [Closed] (LANG-1829) Improve test coverage for DateUtils.truncatedCompareTo() and truncatedEquals()

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

Maksym Korshun closed LANG-1829.
--------------------------------

> Improve test coverage for DateUtils.truncatedCompareTo() and truncatedEquals()
> ------------------------------------------------------------------------------
>
>                 Key: LANG-1829
>                 URL: https://issues.apache.org/jira/browse/LANG-1829
>             Project: Commons Lang
>          Issue Type: Test
>          Components: lang.time.*
>            Reporter: Maksym Korshun
>            Priority: Trivial
>             Fix For: 3.21.0
>
>
> Add unit tests for the following DateUtils methods:
>  * truncatedCompareTo(Date, Date, int)
>  * truncatedCompareTo(Calendar, Calendar, int)
>  * truncatedEquals(Date, Date, int)
>  * truncatedEquals(Calendar, Calendar, int)
> The tests cover:
>  * equality after truncation
>  * less-than and greater-than comparisons
>  * true/false behavior for truncatedEquals
>  * NullPointerException for null arguments
> No production code changes are included.



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