Fenzo icon indicating copy to clipboard operation
Fenzo copied to clipboard

Removed exception handling (test smell)

Open eas5 opened this issue 4 years ago • 0 comments

This is a test refactoring.

Problem: The exception handling test smell occurs when a test method explicitly a passing or failing of a test method is dependent on the production method throwing an exception. The improved test manually handled and declared exceptions that are never thrown.

Solution: Utilize JUnit's exception handling to automatically pass/fail the test instead of writing custom exception handling code or throwing an exception.

eas5 avatar Jul 28 '20 11:07 eas5