• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Does the pragmatic unit testing book cover matchers?

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Authors,
Does the book cover Hamcrest matchers extensively? I have found these very useful - lovely stuff...
These help me write better tests - more expressive - and succinct!
However, I have a nagging feeling - there is a lot more to it - would love to see
these treated at length ;-)

--- warm regards,
atul
 
author
Posts: 799
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
reply
    Bookmark Topic Watch Topic
  • New Topic