| | |
| | | TestDataUtility.CreatePIPolicyConfiguration('Contact'); |
| | | Contact con = TestDataUtility.CreateContacts(1)[0]; |
| | | con.AWS_Data_Id__c = 'davdsvgrqcx'; |
| | | con.AccountId = '0010K00001aqioMQAQ'; |
| | | update con; |
| | | List<String> awsList = new List<String>(); |
| | | awsList.add(con.AWS_Data_Id__c); |
| | | awsList.add(con.AccountId); |
| | | String awsListJson = JSON.serialize(awsList); |
| | | |
| | | String url = ApexPages.currentPage().getParameters().put('accountId',con.AccountId); |
| | | Test.startTest(); |
| | | SearchContactController scc = new SearchContactController(); |
| | | SearchContactController.searchContacts(awsListJson); |
| | | SearchContactController.searchContacts(awsListJson,'',''); |
| | | SearchContactController.searchContactsNoPI(''); |
| | | scc.searchKeyWord = 'test'; |
| | | Test.stopTest(); |
| | | } |