You need to sign in to do that
Don't have an account?
Sunnyalex
How to cover these line of apex code in test class
String.isnotBlank(rr.r.Receipt_status__c) &&
rr.r.Receipt_status__c.equalsIgnoreCase('Processed for industry') &&
String.isNotBlank(rr.rCloned.Ranking__c) &&
rr.rCloned.Banking__c.equalsIgnoreCase('Payment') &&
String.isNotBlank(rr.r.Currency__c) &&
!(rr.r.Currency__c.equalsIgnoreCase('Indian') || rr.r.Currency__c.equalsIgnoreCase('RUPEES')) &&
rr.rCloned.Forex__c == null
) {
rr.style2 = 'error';
error = true;
rr.r.Receipt_status__c.equalsIgnoreCase('Processed for industry') &&
String.isNotBlank(rr.rCloned.Ranking__c) &&
rr.rCloned.Banking__c.equalsIgnoreCase('Payment') &&
String.isNotBlank(rr.r.Currency__c) &&
!(rr.r.Currency__c.equalsIgnoreCase('Indian') || rr.r.Currency__c.equalsIgnoreCase('RUPEES')) &&
rr.rCloned.Forex__c == null
) {
rr.style2 = 'error';
error = true;
Anudeep (Salesforce Developers)
Can you please post the entire code here? You need to populate all the fields on the object referenced in your code