Core Java

Clean Unit Test Patterns – Presentation Slides

I was given the opportunity to talk at the GDG DevFestKarlsruhe 2014 conference about ‘Clean Unit Test Patterns’. Thanks to the organizers for inviting me and thanks to all people listening to my talk.

As promised I shared the presentation e.g. for those who want to have a look at the additional slides I did not cover during the talk:
 
 
 
 
 

Clean Unit Test Patterns

GDG DevFest Karlsruhe 2014 – Oktober 25th, 2014

JUnit testing is not as trivial as it might look. If not written with care, tests can be a show-stopper with respect to maintenance and progression.

Hence this session introduces the clean structure of well written unit tests. It explains the significance of test isolation and how it can be achieved by means of various test double patterns. The topic is deepened by a brief discussion about the pros and cons of test double frameworks.

The talk continues with the JUnit concepts Runners and Rules. It illustrates in which way these effect testing efficiency and readability. Descriptive examples are used to enlarge upon the subject.

Finally the presentation covers unit test assertions. It shows how custom verification patterns of Hamcrest or AssertJ can help writing clear, simple and expressive assertion statements.

Reference: Clean Unit Test Patterns – Presentation Slides from our JCG partner Frank Appel at the Code Affine blog.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back to top button