You need to sign in to do that
Don't have an account?
subra_SFDC
Call private methods in test class
How can we call private methods in apex test class without using isTestVisible?? can any1 give example for this??
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
But if thet private variable is part of the execution of a piblic method then it will be automatically called. In you calls try to cover functional scenerio if that variable is used in that scenario then you will never need to call that variable directly.
@isTestVisible used in very rare case when there is no other way that the variable going to initialize or assigned.