Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace hamcrest matchers with methods from non-deprecated packages #588

Merged
merged 1 commit into from
May 25, 2023

Conversation

NotMyFault
Copy link
Member

@NotMyFault NotMyFault commented May 23, 2023

With #587 in mind, we can make use of the methods from the hamcrest package, which is the drop-in replacement for the deprecated -core package.

The code from the deprecated package has been merged in, and the methods return the same, nonetheless I applied the breaking label because the method signature changes.
Testing with core in jenkinsci/jenkins#8046 revealed no issues.

@NotMyFault NotMyFault changed the title Update hamcrest with non-deprecated methods Replace hamcrest matchers with methods from non-deprecated packages May 25, 2023
@NotMyFault NotMyFault marked this pull request as ready for review May 25, 2023 08:14
@basil
Copy link
Member

basil commented May 25, 2023

I applied the breaking label because the method signature changes

Can you give an example of a method whose signature has changed?

@NotMyFault
Copy link
Member Author

Methods now return Matchers.doSth instead of CoreMatchers.doSth

@basil
Copy link
Member

basil commented May 25, 2023

In which method is a return value of CoreMatchers part of the method signature?

@NotMyFault NotMyFault added chore and removed breaking labels May 25, 2023
@NotMyFault
Copy link
Member Author

Adjusted the labels, the underlying hamcrest methods return the same. Looks like I read it wrong before.

Copy link
Member

@basil basil left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@basil basil merged commit 13b7c49 into jenkinsci:master May 25, 2023
13 checks passed
@NotMyFault NotMyFault deleted the hamcrest-update branch May 25, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants