Which step should the developer take to resolve the issue and properly test the exception?

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?
A . Use try/catchwithin the unit test to catch the exception.
B . Use the finally bloc within the unit test to populate the exception.
C . Use the database methods with all or none set to FALS
E . Use Test.isRunningTest()within the custom controller.

Answer: A

Latest CRT-450 Dumps Valid Version with 372 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments