To match objects of two different mutually non-assignable Classes (say ClassA & ClassB) based on the equality of a proper/improper subset of their fields. Use two loops, to iterate over the list of ...
Android is really an amazing little platform, but occasionally you will run into API differences. Some of these are actual bugs (like a number of reflection and enum issues in early releases), and ...
The ResultSet matcher is the implementation of a Java Hamcrest matcher. The Hamcrest (an anagram of "matchers") suite is a collection of matchers that aim to be written declaratively and provide ...
In the post Improving On assertEquals with JUnit and Hamcrest, I briefly discussed Hamcrest “core” matchers being “baked in” with modern versions of JUnit. In that post, I focused particularly on use ...
Have you ever wished you could... magically produce Hamcrest Matchers for all (or just some) of your model or service classes? produce such matchers without polluting your production code with test ...