Thanks Yvette for the kind words on the book!
As an update to Andy and Dave's 2003 book, I tried to make sure that the examples were a little meatier, since a few of the review complaints were that the code didn't look like the readers' "real world" code. It's based on lots of practical experience with unit testing (something I've been doing for 15+ years).
I think the book brings a new, modern emphasis to unit testing:
- AAA (Arrange/Act/Assert) is heavily emphasized and used
- more cohesive tests, moving in the direction of one assert per test, is heavily emphasized
- designing the tests to act as long-lasting, trustworthy documentation on class capabilities is heavily emphasized
- Hamcrest is used throughout
- Design was emphasized as very important to unit testing (and vice versa), and still is in this version
I don't know that there are any obsolete elements, per se.
JUnit has changed a bit, and I hope no one starts with JUnit 3.8-style tests anymore, but I'm sure there's plenty of code out there that still uses the 3.8 framework.
Regards,
Jeff