[
https://issues.apache.org/jira/browse/LANG-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved LANG-1829.
-----------------------------------
Fix Version/s: 3.21.0
Resolution: Fixed
[~kzhun]
Resolved, PR merged to git master. Please verify and close.
> 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)