| | |
| | | @isTest |
| | | private class FileUploadControllerTest { |
| | | static testMethod void testMethod1() { |
| | | TestDataUtility.CreatePIPolicyConfiguration('Document'); |
| | | // TestDataUtility.CreatePIPolicyConfiguration('Document'); |
| | | TestDataUtility.CreatePIPolicyConfiguration(); |
| | | Account acc = new Account(Name = 'test'); |
| | | Map<String,Object> accMap = new Map<String,Object>(); |
| | | accMap.put('Account',acc); |
| | |
| | | fuc.refreshFiles(); |
| | | fuc.parentId = ''; |
| | | fuc.refreshFiles(); |
| | | try{ |
| | | delete file; |
| | | }catch(Exception e){ |
| | | system.debug('Exception from delete file:'+e.getmessage()); |
| | | } |
| | | Test.stopTest(); |
| | | } |
| | | static testMethod void testMethod2() { |