function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
saiisaii 

test case help

Hi I am not able to cover the small part of code in my testcase please help me String Body= email.plainTextBody; String EmailResponseURL= 'http://'; string ParseBody= Body.substringAfter(EmailResponseURL); string[] Parseurl= ParseBody.split('\n'); system.debug('Parseurl'+Parseurl[0]); Boolean SplChar = Parseurl[0].containsAny('*'); if(SplChar == true){ Orderid=Parseurl[0].remove('*'); OrderURL=EmailResponseURL+ Orderid; } else { Orderid = Parseurl[0]; OrderURL=EmailResponseURL+ Orderid; } how to cover the If block .. please help me
Rahul_sgRahul_sg

make sure there is  *  in your test data for Parseurl field.