Maksym Korshun created LANG-1829:
------------------------------------

             Summary: 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


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)

Reply via email to