with JUnit and Assertj Recently I had to test that the code does not throw any exception. We all know that AssertJ gives us a powerful set of assertions which improves your test code readability. And again, AssertJ helped me to do the job with assertThatCode: You can find more assertions example on github. I …