Skip to main content

Micha Kops: Make your Tests more readable with custom Hamcrest Matchers

Make your Tests more readable with custom Hamcrest Matchers: Everyday we’re writing tests for our software and sometimes we’re in a situation where we’re testing a specific type or object very often. Luckily Hamcrest allows us to create custom matchers by subclassing from a given variety of available matchers. Adding jUnit and Hamcrest: First add the dependencies for JUniti and Hamcrest to...

Community: