From 2f183a6b0a83ec3f7d35375d5d25d200efc2a3e1 Mon Sep 17 00:00:00 2001
From: Li Jun <buli@deloitte.com.cn>
Date: 星期二, 19 四月 2022 18:46:18 +0800
Subject: [PATCH] 20220419FixIssue
---
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