Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
akhil V asked in #Apex
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
5 answers
  1. May 23, 2015, 10:06 AM
    Hi,

    @testvisible is released before winter 15 .So you can use chage your version to 30 ,it will work .

     
Loading
0/9000