From d79fcb2a960e8b0e18fe039d892f98187b08866d Mon Sep 17 00:00:00 2001
From: 李彤 <litong@prec-tech.com>
Date: 星期五, 23 九月 2022 18:24:58 +0800
Subject: [PATCH] 招标项目失单报告
---
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