A developer creates an Apex class that includes private methods. What - ProProfs Discuss
Topics
Products
Follow Us:

A developer creates an Apex class that includes private methods. What can the developer do to ensure that the private methods can be accessed by the test class?



A. Add the TestVisible attribute to the Apex class
B. Add the SeeAllData attribute to the test methods.
C. Add the TestVisible attribute to the apex methods.
D. Add the SeeAllData attribute to the test class

This question is part of Salesforce Platform Developer 1
Asked by Wyatt Williams, Last updated: Jan 12, 2020

+ Answer
Request

1 Answer

John Smith

John Smith

Answered Apr 26, 2017

Add the TestVisible attribute to the apex methods.

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.