I have an Apex Class that has no code in it. But, when I look at the class details, under code coverage, it says that I have 0/6 lines of code not covered. Its parent class is a child class of Salesforce's Exception class (this class also has no code in it and salesforce is able to recognize that giving me a "0% (No coverage data)".
public virtual with sharing class MyException extends Exception {
(no code here, don't need coverage)
}
public virtual with sharing class CalloutException extends MyException {
(no code in here, but Salesforce is showing 0/6 lines of code covered)
}
I need to have CalloutException at least 75% covered but after playing around with it, could not get a single line in the unit test.
Anyone have any ideas on what's going on?
Thanks!
CalloutException
. There is a class with that name in the System namespace. Maybe more a matter of personal preference as it should be separate from your namespace. – Daniel Ballinger Jun 10 '14 at 22:51