You need to sign in to do that
Don't have an account?
Jose María Nicolás Arfelis
Which kind of codes need a "Test" part in Salesforce?
Hi all,
as I am a newbie in the programming world in Salesforce, I would like to know, which kind of codes in Salesforce need a "Test" part?.
Til now, I know Triggers need it, which other types of Codes need a "Test" part.
I would appreciate your answers.
Best regards.
as I am a newbie in the programming world in Salesforce, I would like to know, which kind of codes in Salesforce need a "Test" part?.
Til now, I know Triggers need it, which other types of Codes need a "Test" part.
I would appreciate your answers.
Best regards.
Basically ALL Apex code from Visualforce controllers to batch and schedule classes to triggers and simple apex classes. More information on this can be found here (https://developer.salesforce.com/page/An_Introduction_to_Apex_Code_Test_Methods).
Hope this helps!
AM
And what about this kind of simple lines?:
<apex:page action="{!URLFOR($Action.Account.List, $ObjectType.Account)}"/>
this apex code consists of only one line. Even this line needs a Test part?.