OCHamcrest matchers are predicates on steroids:
- You can combine them to create expressive assertions.
- They describe mismatches in detail, reducing the need to debug.
But OCHamcrest isn’t just a library of powerful matchers. It’s a framework for creating your own.
By creating a custom matcher, you create a small Domain-Specific Language. This will make your unit tests easier to write, easier to read, and self-diagnosing! Continue Reading…