You need to sign in to do that
Don't have an account?
shravani mil
how to cover this lines
if(u.Postal_Codes__c<>null){
if (SrPostalCode==null){
SrPostalCode=u.Postal_Codes__c;
SrPostalCode = SrPostalcode.replace(';', ',');
}
else{
if(!SrPostalCode.contains(u.Postal_Codes__c))
SrPostalCode=SrPostalCode+','+u.Postal_Codes__c;
SrPostalCode = SrPostalcode.replace(';', ',');
}
}
if (SrPostalCode==null){
SrPostalCode=u.Postal_Codes__c;
SrPostalCode = SrPostalcode.replace(';', ',');
}
else{
if(!SrPostalCode.contains(u.Postal_Codes__c))
SrPostalCode=SrPostalCode+','+u.Postal_Codes__c;
SrPostalCode = SrPostalcode.replace(';', ',');
}
}
Nishad K
Can u share you test class...?
Nishad K
You can add a test case "Postal_Codes__c= value"(not null)