adspace


How can a test class access the private members of another class ?

Answer Posted / Mintu Kumar

In Salesforce Apex, you cannot directly access private members of another class from a test class. However, you can write unit tests that create instances of the class under test and call its public methods to verify their behavior.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is workflow rule and workflow actions? : salesforce workflows and approval process

572


What were you doing before sfdc development?

521