@isTest
|
public with sharing class FilePreviewDownVFControllerTest {
|
@TestSetup
|
static void makeData(){
|
List<String> strList= new List<String>();
|
strList.add('Document');
|
TestDataUtility.CreatePIPolicyConfigurations(strList);
|
}
|
static testMethod void testMethod1() {
|
Test.startTest();
|
PageReference ref = new PageReference('/apex/FilePreviewDownVFController?key=1&name=2&type=3');
|
Test.setCurrentPage(ref);
|
Document doc = new Document();
|
ApexPages.StandardController con = new ApexPages.StandardController(doc);
|
FilePreviewDownVFController controller = new FilePreviewDownVFController(con);
|
Test.stopTest();
|
}
|
}
|