Skip to content

Refactor time comparison test assertions#3725

Merged
duanemay merged 1 commit intodevelopfrom
time-based-asserts
Jan 24, 2026
Merged

Refactor time comparison test assertions#3725
duanemay merged 1 commit intodevelopfrom
time-based-asserts

Conversation

@duanemay
Copy link
Member

Improve a couple more time comparison based on the pattern in #3720

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors time comparison test assertions to use more concise AssertJ assertion methods, following the pattern established in PR #3720. The changes simplify test assertions and remove unused imports.

Changes:

  • Replace chained isGreaterThanOrEqualTo().isLessThanOrEqualTo() assertions with isBetween() in LoginMockMvcTests
  • Simplify time boundary assertion in UaaTokenStoreTests and add a descriptive message
  • Remove unused JUnit parameterized test imports and reorganize Jakarta servlet imports

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
LoginMockMvcTests.java Refactors time comparison assertion to use isBetween() and reorganizes imports
UaaTokenStoreTests.java Simplifies time boundary assertion and adds descriptive message

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Jan 24, 2026
@duanemay duanemay merged commit 803efdc into develop Jan 24, 2026
39 checks passed
@duanemay duanemay deleted the time-based-asserts branch January 24, 2026 17:14
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants