답변 2개
Hi divya, If your test class is 100% cover, you must add assert in your test class.
replace your method with above. I added assert in this method.I hope it will complete your requirment.let me know if it helps you and marking it as best.Thank youpublic static testmethod void testMaintenanceHelper(){
Test.startTest();
getData();
for(Case cas: caseList1)
cas.Status ='Closed';
update caseList1;
system.assertEquals('Closed', cas.Status);
Test.stopTest();
}