Checking Exceptions
Testing that exceptions are correctly thrown.
Checking exceptions
- Checking that [exceptions are correctly thrown] in JUnit 5 with the(https://junit.org/junit5/docs/current/user-guide/#writing-tests-assertions)
assertThrows
annotation