Can Intellij Idea be configured to break when a JUnit java.lang.AssertionError occurs during debugging?
I know that Intellij Idea supports the ability to break when exceptions occur during debugging, but I am not sure if this is possible for AssertionErrors.
This would be particularly useful when a large application context must be prepared before unit tests can be ran.
I searched, but could not find the answer to this question.
Here is how my Run > View Breakpoints... > Java Exception Breakpoints dialog is configured:
From the Breakpoints dialog, click the +
button to add a new breakpoint, select "Java Exception Breakpoints" from the drop-down, and then enter java.lang.AssertionError
as the exception class.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With