You need to sign in to do that
Don't have an account?

Test Class for Query Locator
Hi All,
I currently have 67% code coverage for one of my apex classes but, I'm struggling to cover the following lines:
if (caseOwner=='' && contactName=='' && accountname!='') { con = new ApexPages.StandardSetController(Database.getQueryLocator([SELECT Owner.Name, Account.Name, Contact.Name FROM Case WHERE RecordTypeId =:RecordTypeId AND Account.Name LIKE :accountname])); con.setPageSize(200); }
Any help on how i can cover these lines would be greatly appreciated!!
Hi,
Could you pls post your complete testMethod for better understanding ?
Here you go.....thanks!!