assertj-exception-assertion
AssertJ Exception Assertions 1. Overview In this quick tutorial, we’ll have a look at AssertJ’s exception-dedicated assertions. 2. Without AssertJ In order to test if an exception was thrown, we’d need to catch the exception and then perform assertions: try { // … } catch (Exception e) { // assertions… Continue Reading assertj-exception-assertion