You need to sign in to do that
Don't have an account?
akhil V
@TestVisible annotation(deployment error)
Hi i have a class and need a code coverage for that i wrote a test class bt it is not passing the private method in test class,so i kept @testvisible annotation to private method then it was passed,when i have done the deployment i got a error about @testvisible annoation ?can any one say how to rectify and deploy my code to production.?
Thanks in Advance,
Akhil
Thanks in Advance,
Akhil
1. Is your prod up with Sprint'15 release as @testVisible is released in Spring'15?
2. Are you following code in below form:
Class with Private members:
Test Class for unit testing private members/methods:
Thanks,
Sumit
my prod org is not up to spring15 release and the above thing i have followed to acces private members,i got the error message as private methods are not accessible during deployment
Thanks,
Akhil
If you have added @testVisibele in your class private method ,So you have the right to edit your class .
So simpley edit your class update the versionn to latest version like 33 then save and deploy it will help.
@testvisible is released before winter 15 .So you can use chage your version to 30 ,it will work .