Fenzo
Fenzo copied to clipboard
Removed exception handling (test smell)
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.