高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Author: Chen, Yanan
 * Created Date: 05/11/2022
 * Purpose: Test Class
 * Test Class: RentalReportExportControllerTest
 * History: 
 *      05/11/2022 - Chen, Yanan - Initial Code.
 * 
 * */
@isTest
private class RentalReportExportControllerTest {
    static testMethod void testMethod1() {
        TestDataUtility.CreatePIPolicyConfiguration();
        Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreateMetaDataUtilityHttpMock());
        
        PageReference page = new PageReference('/apex/RentalReportExport');
        System.Test.setCurrentPage(page);
        RentalReportExportController rentalReport =  new RentalReportExportController();
        
        Test.startTest();
        rentalReport.addFilter();
        rentalReport.removeFilter();
        Test.stopTest();
    }
}