You need to sign in to do that
Don't have an account?
shravani mil
unable to cover the below lines in my test class al_code_=null
if(s.al_Codes__c<>null){
if (SalCode==null){
SalCode=s.al_Codes__c;
SalCode = Salcode.replace(';', ',');
}
else{
if(!SalCode.contains(s.al_Codes__c))
SalCode=SalCode+','+s.al_Codes__c; SalCode = Ssalcode.replace(';', ','); }
}
if (SalCode==null){
SalCode=s.al_Codes__c;
SalCode = Salcode.replace(';', ',');
}
else{
if(!SalCode.contains(s.al_Codes__c))
SalCode=SalCode+','+s.al_Codes__c; SalCode = Ssalcode.replace(';', ','); }
}
Please use this test case for if part.
and this test case for else part.
Thanks,
Anand Sharma,
Salesforce Developer
Still am unable to cover that lines.
Thanks,
Can you please elaborate the situation happening here?
or can you show the whole code and code from test class to figure out why are you experiencing this kind of behaviour?
Thanks,
Anand Sharma
Salesforce Developer
sorry but i think the class you posted is not complete.
please verify.
Thank you,
Anand Sharma
Salesforce Developer