@isTest public class CustContControllerTest { static testMethod void testMethod1() { Account acctest = TestDataUtility.CreateAccounts(1)[0]; Contact contest = TestDataUtility.CreateContacts(1)[0]; String url = ApexPages.currentPage().getParameters().put('accid',acctest.Id); url = ApexPages.currentPage().getParameters().put('conid',contest.Id); Test.startTest(); CustContController scc = new CustContController(); scc.init(); scc.getisOk(); String ccurl = scc.ccUrl; loaner_user__c lu = scc.lu; Test.stopTest(); } }