Activity Forums Salesforce® Discussions What is the use of @TestVisible in Salesforce ?

  • Anuj

    Member
    April 27, 2020 at 1:01 pm

    @TestVisible annotation to allow test methods to access private or protected members of another class outside the test class. These members include methods, member variables, and inner classes. This annotation enables a more permissive access level for running tests only.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos