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

How Salesforce Boosted the Reach of MrBeast’s $1M Puzzle

Blog in

Salesforce partnered with YouTuber MrBeast for a groundbreaking Super Bowl campaign that turned a traditional ad into an interactive $1 million puzzle hunt, massively amplifying…

Popular Salesforce Videos