unruly / java-8-matchers

Hamcrest Matchers for Java 8 features
MIT License
23 stars 5 forks source link

We really ought to support contains(Matcher<T> T) et al. #10

Closed CliveEvans closed 5 years ago

CliveEvans commented 7 years ago

I honestly hadn't noticed we don't support this before:

assertThat(
    Stream.of("one", "two", "three"),
    StreamMatchers.contains(equalTo("one"), equalTo("two"), equalTo("three"))
);
bruceeddy commented 7 years ago

Good spot, Clive. We'll take a look.

oniekrenz commented 5 years ago

It's been two years now. Is this project dead? Because I would like to have this feature too.

mrwilson commented 5 years ago

@oniekrenz - this is still a maintained project. I've opened a pull request with an implementation https://github.com/unruly/java-8-matchers/pull/14

mrwilson commented 5 years ago

@oniekrenz The change above has been merged and we'll push this to Maven Central in the next day or two. Thanks!

mrwilson commented 5 years ago

This has been released on Maven central as version 1.6 - enjoy!