#Assertj Workshop
Workshop for the Infobip Devdays 2015 conference.
This workshop is aimed at the Java developers familiar with JUnit, Hamcrest and Mockito. AssertJ is a relatively new library which provides an alternative to assertions API provided by JUnit and Hamcrest.
The goal of the workshop is to provide hands on experience with some of the assertion API provided by AssertJ. Some of the examples are similar to the ones provided in the AssertJ official documentation and others extend them in order to keep clear focus on the goal and workshop flow transparent.
Flow:
- Examine each test, ideally following test classes in alphabetical order.
- Replace every JUnit/Hamcrest assertion with AssertJ assertion, most of the multiline assertions can be replaced with one line AssertJ assertion.
- Refactor all tests to use BDD API of AssertJ and Mockito.
- Have fun!
One of the possible solutions can be found in solution branch.