@isTest
|
public class SearchReportNameControllerTest {
|
|
@IsTest(SeeAllData='true')
|
static void testMethod1(){
|
Test.startTest();
|
SearchReportNameController.DataResponse dataRes = new SearchReportNameController.DataResponse();
|
dataRes.reportUrl = 'baseUrl';
|
dataRes.folderUrl = 'baseUrl';
|
dataRes.createdbyUrl = 'baseUrl';
|
dataRes.name = 're.Name';
|
dataRes.description = 're.Description';
|
dataRes.folderName = 're.FolderName';
|
dataRes.createdByName = 're.CreatedBy.Name';
|
dataRes.createdDate = Datetime.now();
|
SearchReportNameController.searchReportByName('新签询价');
|
Test.stopTest();
|
|
}
|
}
|