You need to sign in to do that
Don't have an account?

How to get code cover for Enum class in APEX
I have a Enum class as:
global class Util { global enum Session { Winter, Summer, Rain } }
and a test class as :
public static testmethod void callTestData(){ test.starttest(); Util.Session se = Util.Session.Winter; test.stoptest(); }
But still my code coverage is 0%?? Why.
Also I tried many ways to cover it but not able to can any one help!!
check this link...it may help you....
http://salesforce.stackexchange.com/questions/20998/how-to-get-code-cover-for-enum-class-in-apex
Thanks and regards,
Subra.J
Trinay Technologies
That is my post only!! I am not getting any answers there so i also posted it here