You need to sign in to do that
Don't have an account?
Salesforcedev
Test apex classe
public class Campaign{
@AuraEnabled
public String campaignId{get;set;}
@AuraEnabled
public String email_dispatch_date{get;set;}
@AuraEnabled
public String campaignLabel{get;set;}
someone can help me about the method for the unit test for this apex classe?
@AuraEnabled
public String campaignId{get;set;}
@AuraEnabled
public String email_dispatch_date{get;set;}
@AuraEnabled
public String campaignLabel{get;set;}
someone can help me about the method for the unit test for this apex classe?
Hi Yang,
pls try something like this
pls let me know if this works .
Manohar
There's also this as type and variable : public Boolean flag_email_clicked{get;set;}
@AuraEnabled
if i write it like this,is it correct?
c1.flag_email_clicked =' ';
Hi Yang,
I think putting '', will give error. '' would be considerd as string. You better put true or false, since its a boolean.
Manohar
When i run the test Classe,but i got this like error message.,like i am beginner with dev,so i need your help.
Thank you very much
Hi Yang,
Happy to help. Its saying classId is null, there there any variable classId in your clas? You can also use Apex Test execution frrom the org.
It will tell you the line number. Can you can from that and put a snap shot of you class with error.
Thanks,
Manohar
It s the apex class from the first message with error message screen shot
Yang
Hi Yang,
Sorry for the late reply.
Have you figured out the error.
Thanks,
Manohar