Skip to content

Add a Matcher which allows the use of lamdas to test the field of an object#60

Closed
wjam wants to merge 1 commit intohamcrest:masterfrom
wjam:master
Closed

Add a Matcher which allows the use of lamdas to test the field of an object#60
wjam wants to merge 1 commit intohamcrest:masterfrom
wjam:master

Conversation

@wjam
Copy link
Copy Markdown

@wjam wjam commented Sep 13, 2014

The idea behind this matcher is to reduce the need to write custom matchers under Java 8 by being able to use a lambda to retrieve the field inside an object to match against

@npryce npryce added this to the 8.0 milestone Dec 23, 2014
@npryce
Copy link
Copy Markdown
Contributor

npryce commented Dec 23, 2014

Duplicate of #45. Will have to wait until we support Java 8.

@markhobson
Copy link
Copy Markdown

I've released Hamcrest Compose which provides a hasFeature matcher along these lines.

@npryce
Copy link
Copy Markdown
Contributor

npryce commented May 22, 2015

Since this is already implemented in auxiliary libraries and duplicate's the FeatureMatcher class, we will drop this for now and revisit when we move over to Java 8 entirely.

@npryce npryce closed this May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants