Speaker Deck

Refactoring Unit Tests

by Alexander Schwartz

Published December 7, 2017 in Programming

Anyone who wants to change existing code must also understand the associated tests. This brief presentation shows how comprehensible JUnit tests can look like: Existing unit tests are refactored using descriptive names, BDD structures and speaking assertions. JUnit 4, AssertJ and Awaitility are used.