One (logical) assert per test + Meaningful asserts + Custom matchers • Assert Equals vs Assert That • Actual & Expected • One (logical) assert per test • Hamcrest & Assert J • Custom matchers
Builders + Mothers • Value Objects are leaf in our classes tree == No mocks here please • Building value objects “issue” • Builders • Mothers • Builders + Mothers
Reading a lot • Effective Unit Testing • WEWUT • Pragmatic Unit Testing with JUnit • GOOS • The Art of Unit Testing • JUnit in Action • xUnit Patterns • Refactoring