You need to sign in to do that
Don't have an account?
test case help
hi this is my controller and i am marking red where my test case is not covered
public class Netsmart_Portal_Homepage{ the error i am getting is
System.QueryException: List has no rows for assignment to SObject for contact query
this is my test case
@istest
contact c1=[select id from contact where id=:u.contactid];
Netsmart_Portal_Homepage n1 =new Netsmart_Portal_Homepage(); |
All Answers
try using public "List<contact> c{get;set;}" in place of "public contact c{get;set;}"
i think u r going to be the next generation salesforce contributer thank u gettha mam hail reddy