JavaHamcrest
JavaHamcrest copied to clipboard
Java (and original) version of Hamcrest
Currently the following code won't compile: ```java List submatchers = new ArrayList(); new AllOf(submatchers); ``` This is because `AllOf` expects an `Iterable
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...
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...
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...
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")...
#182 Supply Javadoc comments for all methods of `MatcherAssert`.
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,...
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...