You need to sign in to do that
Don't have an account?
Test class help required
Hi,
Please help me with covering this condition alone in test class
for(Id baIdd:accIdSet){
if(calltemplst!=null && calltemplst.size()>0 && calltemplst.get(0)!=null && calltemplst.get(0).Brand__r.name!=''){
top3bbl.add(calltemplst.get(0).Brand__c);
}
if(calltemplst!=null && calltemplst.size()>1 && calltemplst.get(1)!=null && calltemplst.get(1).Brand__r.name!=''){
top3bbl.add(calltemplst.get(1).Brand__c);
}
Map<String,String> baIdMap=new Map<String,String>();
for(Call_Report__c callRep:crList){
if(baIdMap!=null && baIdMap.get(callRep.Account__c)==null){
PdfWrapper pw=new PdfWrapper();
pw.cr=callRep;
if(callRep.Account__c !=null){
baIdMap.put(callRep.Account__c,callRep.Account__c);
pw.pernAcctList=paMap.get(callRep.Account__c);
}
whole code please.