Timeline for Code Coverage for Catch block in test class?
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 12, 2022 at 12:17 | comment | added | Victor Lockwood | Using existing validation rules would be valid, I think that adding an arbitrary validation rule is not the way to go here, and it wouldn't cover the real-world scenario that it seems OP is trying to cover. Not to mention it could create unforseen consequences in business processes. You may want to bring your "I know it is not a good practice" disclaimer up to the beginning of that paragraph. | |
S Jan 12, 2022 at 12:10 | review | First answers | |||
Jan 12, 2022 at 12:17 | |||||
S Jan 12, 2022 at 12:10 | history | answered | Ramesh reddy | CC BY-SA 4.0 |