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