Skip to content

expose hasLength(Matcher) in Matchers - #306

Merged
nhojpatrick merged 1 commit into
hamcrest:masterfrom
chabala:expose-haslength-matcher-signature
Jul 19, 2020
Merged

nhojpatrick merged 1 commit into
hamcrest:masterfrom
chabala:expose-haslength-matcher-signature

Conversation

@chabala

@chabala chabala commented Jun 12, 2020

Copy link
Copy Markdown
Contributor

hasLength(Matcher) signature already exists, but currently client code must import CharSequenceLength directly in order to use it, unlike hasLength(int) which is already present.

This PR exposes it in the main Matchers object, similarly to how hasSize(Matcher) and hasSize(int) are both present.

@chabala

chabala commented Jun 12, 2020

Copy link
Copy Markdown
Contributor Author

Original CharSequenceLength PR #179

@nhojpatrick

Copy link
Copy Markdown
Member

@chabala please can you rebase from master, as hamcrest-core and hamcrest-library have been refactored a lot and also deprecated, so that everything is just in hamcrest.

@chabala

chabala commented Jun 29, 2020 •

Copy link
Copy Markdown
Contributor Author

The change is not in hamcrest-core nor hamcrest-library. Do you still need a rebase @nhojpatrick? There have only been three commits to master since my branch 2 weeks ago.

@chabala
chabala force-pushed the expose-haslength-matcher-signature branch from fb7efd8 to 72cd46e Compare June 30, 2020 05:09
@chabala

chabala commented Jul 17, 2020

Copy link
Copy Markdown
Contributor Author

@nhojpatrick Are you waiting on me?

@nhojpatrick

Copy link
Copy Markdown
Member

@chabala personally I hate org.hamcrest.Matchers being a monolith of method calls. But as it still exists it would make sense to have methods people want moved into it.

@nhojpatrick
nhojpatrick merged commit 526cc37 into hamcrest:master Jul 19, 2020
@chabala
chabala deleted the expose-haslength-matcher-signature branch July 19, 2020 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants