You need to sign in to do that
Don't have an account?
MOHAMMEDISHAQUESHAIKH
is it necessary to write test class for custom Exception ?
Custom Exception Class
public MyException extends Exception{ }
- Do we need to Write the test class for deployment ?
- Code coverage is 0% will it be able to move to prod environment?
@isTest public class MyTest{ static testmethod void testMethod(){ try{ throw new MyException(); }catch(Exception ex){} } }
Ivory Tollers
I think yes