unruly / java-8-matchers

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

Fix StreamMatchers.contains() to return the correct parameterised type. #12

Closed facboy closed 7 years ago

facboy commented 7 years ago

At the moment StreamMatchers.contains() always returns a Matcher<BaseStream<T,S>>, this means it cannot be used for argument matching a Stream (for example), because the parameterised type is wrong.