A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown.
Which step should the developer take to resolve the issue and properly test the exception?
- Use try/catch within the unit test to catch the exception.
- Use the finally bloc within the unit test to populate the exception.
- Use the database methods with all or none set to FALSE.
- Use Test.isRunningTest() within the custom controller.
Reveal Solution Next Question