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/NFM603ControllerTest.cls | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/force-app/main/default/classes/NFM603ControllerTest.cls b/force-app/main/default/classes/NFM603ControllerTest.cls
index c8c1c38..d30f234 100644
--- a/force-app/main/default/classes/NFM603ControllerTest.cls
+++ b/force-app/main/default/classes/NFM603ControllerTest.cls
@@ -258,7 +258,7 @@
iflog.Log__c = 'test start \n';
insert iflog;
- NFM603Controller.callout(iflog.Id,idList);
+ NFM603Controller.executefuture(iflog,idList);
Test.stopTest();
}
@@ -278,11 +278,11 @@
// Test.stopTest();
// }
- @isTest
- static void testcallout3(){
- BatchIF_Log__c iflog = [select id from BatchIF_Log__c where Type__c = '603test'];
- NFM603Controller.ManualExecute(iflog.Id);
- }
+ // @isTest
+ // static void testcallout3(){
+ // BatchIF_Log__c iflog = [select id from BatchIF_Log__c where Type__c = '603test' limit 1];
+ // NFM603Controller.ManualExecute(iflog.Id);
+ // }
@isTest
static void NFM603BatchTest01(){
@@ -305,5 +305,13 @@
Database.executeBatch(new NFM603Batch(idList),100);
Test.stopTest();
}
+ @isTest
+ static void NFM603execute(){
+ List<BatchIF_Log__c> logList = [select id from BatchIF_Log__c];
+ Test.startTest();
+ BatchIF_Log__c iflog = logList[0];
+ NFM603Controller.ManualExecute(iflog.Id);
+ Test.stopTest();
+ }
}
\ No newline at end of file
--
Gitblit v1.9.1