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
Slide 33
Slide 33 text
• Assert Equals vs Assert That / Actual & Expected
One (logical) assert per test +
Meaningful asserts + Custom matchers
Slide 34
Slide 34 text
One (logical) assert per test +
Meaningful asserts + Custom matchers
• One (logical) assert per test
Slide 35
Slide 35 text
No content
Slide 36
Slide 36 text
No content
Slide 37
Slide 37 text
One (logical) assert per test +
Meaningful asserts + Custom matchers
• Hamcrest
Slide 38
Slide 38 text
• Assert J
Slide 39
Slide 39 text
One (logical) assert per test +
Meaningful asserts + Custom matchers
• 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