Assertion: assertDoesNotThrow()

Learn about the assertDoesNotThrow() method in JUnit 5.

The assertDoesNotThrow() method

The assertDoesNotThrow() method asserts that the execution of the given Executable doesn’t throw any kind of exceptions.

Get hands-on with 1400+ tech skills courses.