Exceptions are crucial part of some Java APIs. How to assert that exceptions was thrown? In this note you will examples of various exception assertion techniques.
It's usually in our best interest to keep one assertion per test method. Yet, situation when more than one check in single test method is present may occur.