You need to sign in to do that
Don't have an account?
Ashw
How to Do Code Coverage for empty class. this class in our org i dont now what is the use of this empty class
public class activate { } Test class: @isTest private class emptyclass_Test{ static testmethod void mycodecoverage(){ test.startTest(); activate em = new activate(); test.stopTest(); } }
If you want just code coverage then you need to add one no argument constuctor in the class .How ever empty class we can create for custom exception .
One more thing which version this class is ,as activate is reserve word in apex it should not allow you to save the class .
If it allowing then add constructor then your code will give 100 % code coverage .
All Answers
If you want just code coverage then you need to add one no argument constuctor in the class .How ever empty class we can create for custom exception .
One more thing which version this class is ,as activate is reserve word in apex it should not allow you to save the class .
If it allowing then add constructor then your code will give 100 % code coverage .
[Error] Error: Compile Error: System exception constructor already defined: <Constructor>() at line 2 column 12