AssertDoesNotThrow Example

In this post under JUnit, I will explain with example what is the purpose and how to use “AssertDoesNotThrow” assertion method. AssertDoesNotThrow takes an executable code and assert that the method doesn’t throw any exception during execution. Below is the javadoc of “assertDoesNotThrow” exception public static void assertDoesNotThrow​(Executable executable) Where “Executable” is a functional interface…… Continue reading AssertDoesNotThrow Example