You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "kzhunmax (via GitHub)" <gi...@apache.org> on 2026/07/26 19:34:06 UTC
[PR] LANG-1829 Add tests for DateUtils.truncatedCompareTo and truncatedEquals [commons-lang]
kzhunmax opened a new pull request, #1753:
URL: https://github.com/apache/commons-lang/pull/1753
Adds unit tests for the following DateUtils methods:
- truncatedCompareTo(Date, Date, int)
- truncatedCompareTo(Calendar, Calendar, int)
- truncatedEquals(Date, Date, int)
- truncatedEquals(Calendar, Calendar, int)
## Motivation
Improves test coverage for the wrapper methods by verifying:
- equality after truncation
- less-than and greater-than comparison results
- true and false cases for truncatedEquals()
- NullPointerException for null arguments
No production code changes are included.
Related: LANG-1829
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [LANG-1829] Add tests for DateUtils.truncatedCompareTo and truncatedEquals [commons-lang]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #1753:
URL: https://github.com/apache/commons-lang/pull/1753#issuecomment-5085357529
Thank you @kzhunmax , merged 🚀 It seems these methods were not tested!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [LANG-1829] Add tests for DateUtils.truncatedCompareTo and truncatedEquals [commons-lang]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #1753:
URL: https://github.com/apache/commons-lang/pull/1753#issuecomment-5085355934
The Jira ticket is [LANG-1829](https://issues.apache.org/jira/browse/LANG-1829).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [LANG-1829] Add tests for DateUtils.truncatedCompareTo and truncatedEquals [commons-lang]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #1753:
URL: https://github.com/apache/commons-lang/pull/1753
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org