JavaHamcrest icon indicating copy to clipboard operation
JavaHamcrest copied to clipboard

Java (and original) version of Hamcrest

Results 146 JavaHamcrest issues
Sort by recently updated
recently updated
newest added

Currently the following code won't compile: ```java List submatchers = new ArrayList(); new AllOf(submatchers); ``` This is because `AllOf` expects an `Iterable

enhancement

Fixing https://github.com/hamcrest/JavaHamcrest/issues/158 with Math.abs

bug

Lots of matchers know what type of object they are dealing with, but there's currently no way to get at that information. This type information would be really helpful for...

enhancement

The idea is to be able to test multiple properties in a single assertion and get a decent error message when at least one of them does not match. I've...

enhancement

Fixes #201 Hi! This description is somewhat verbose but sufficiently detailed. It would be my pleasure if you could read it. I am a student in class Software Engineering and...

bug

This simple addition allows users on java 8 to do this: ```java FeatureMatcher.ofFunction(Thing::calculateName, containsString("foo"), "calculated name contains foo", "calculateName") ``` instead of ```java new FeatureMatcher(containsString("foo"), "calculated name contains foo", "calculateName")...

enhancement

#182 Supply Javadoc comments for all methods of `MatcherAssert`.

enhancement

When I test maps I often need to apply a matcher for the value and check equality for the key. Currently there is no `hasEntry` matcher that consumes a key,...

enhancement

I kindly request to add `stringContainsInAnyOrder` as a complement to `stringContainsInOrder`. It matches if all of the substrings are contained within the subject, regardless of the order. I'm aware that...

enhancement