Hi Atul,
There's a chapter on assertions in the book that covers a number of the core Hamcrest assertions. And I prefer Hamcrest assertions myself, so that's what you'll see throughout the book. (Just remember, since it's designed for newer
JUnit testers, you're going to see more of key elements and what's important, not exhaustive coverage.)
I have one, perhaps two, examples where I introduce a custom matcher as well.
Regards,
Jeff