You need to sign in to do that
Don't have an account?
saii
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
make sure there is * in your test data for Parseurl field.