Improved exception handling in the test suite. The previous code is considered a test smell.
The idea is giving preference to JUnit’s exception handling feature to automatically pass/fail the test instead of custom exception handling code or exception throwing.
Improved exception handling in the test suite. The previous code is considered a test smell. The idea is giving preference to JUnit’s exception handling feature to automatically pass/fail the test instead of custom exception handling code or exception throwing.