Skip to content
RED SAG Skills
easyStudy question · answer published in Automation Testing interview questions, so no pointstest-automationjunitunit-testing

Expecting an exception in JUnit 5

In JUnit 5, how do you check that withdraw(500) on an account with ₹100 throws InsufficientFundsException and then inspect its message?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions