You need to sign in to do that
Don't have an account?
Victor19
Need help writing test data for my controller
Hi,
I have a controller on my visualforce page and I am not able to build test data to cover for the coverage for the below variables. The data comes in from my visualforce page. Can someone please advise?
public class OppExtension{
public OppExtension(ApexPages.StandardController controller) {
std = controller;
OpptyRec = (Opportunity)std.getRecord();
}
public string s1{get;set;}
public string s2{get;set;}
public string s3{get;set;}
public PageReference assignvalue(){
s1 = s1.replace('North America (%) : ', '');
s2 = s2.replace('APAC (%) : ', '');
s3 = s3.replace('LATAM (%) : ', '');
return null;
}
}
Thanks,
Victor
I have a controller on my visualforce page and I am not able to build test data to cover for the coverage for the below variables. The data comes in from my visualforce page. Can someone please advise?
public class OppExtension{
public OppExtension(ApexPages.StandardController controller) {
std = controller;
OpptyRec = (Opportunity)std.getRecord();
}
public string s1{get;set;}
public string s2{get;set;}
public string s3{get;set;}
public PageReference assignvalue(){
s1 = s1.replace('North America (%) : ', '');
s2 = s2.replace('APAC (%) : ', '');
s3 = s3.replace('LATAM (%) : ', '');
return null;
}
}
Thanks,
Victor
All Answers
Victor