From ff435968945d457f9ee653a9620fa1c7d78d2d4c Mon Sep 17 00:00:00 2001
From: 涂煌豪 <tuhuanghao@prec-tech.com>
Date: 星期五, 06 五月 2022 18:17:54 +0800
Subject: [PATCH] MceConfigPDFController 修改
---
force-app/main/default/classes/FileUploadControllerTest.cls | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/classes/FileUploadControllerTest.cls b/force-app/main/default/classes/FileUploadControllerTest.cls
index 9a2cdbf..676ac12 100644
--- a/force-app/main/default/classes/FileUploadControllerTest.cls
+++ b/force-app/main/default/classes/FileUploadControllerTest.cls
@@ -1,7 +1,8 @@
@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);
@@ -36,6 +37,11 @@
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() {
--
Gitblit v1.9.1