From eeb7c0a2d6f037d515bb822d739036b69c4dc73a Mon Sep 17 00:00:00 2001
From: 沙世明 <shashiming@prec-tech.com>
Date: 星期五, 08 四月 2022 17:14:12 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlyMEBG
---
force-app/main/default/classes/NFM702ControllerTest.cls | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/classes/NFM702ControllerTest.cls b/force-app/main/default/classes/NFM702ControllerTest.cls
index 37b6b2c..ebfedbc 100644
--- a/force-app/main/default/classes/NFM702ControllerTest.cls
+++ b/force-app/main/default/classes/NFM702ControllerTest.cls
@@ -1,6 +1,9 @@
@isTest
private class NFM702ControllerTest {
-
+ @TestSetup
+ static void makeData(){
+ TestDataUtility.CreatePIPolicyConfiguration('NFM702');
+ }
public Class GeDatas {
public NFMUtil.Monitoring Monitoring;
public GeData[] GeData;
@@ -40,7 +43,7 @@
GeData.TelNo = '13810000000';
GeData.HcpNo = '123456';
GeData.IsActive = true;
- GeData.UpdateStatus = '1';
+ GeData.UpdateStatus = 'U';
NFMUtil.Monitoring Monitoring = new NFMUtil.Monitoring();
Monitoring.Tag = GeDatas.Monitoring.Tag;
@@ -53,9 +56,16 @@
Monitoring.Text = '';
BatchIF_Log__c rowData = NFMUtil.saveRowData(Monitoring, 'NFM702', GeDatas.GeData);
+ List<Contact> conList = TestDataUtility.CreateContacts(3);
List<String> geList = new List<String>();
- geList.add('C000033002');
+ if(conList.size()>0){
+ for(Contact con : conList){
+ geList.add(con.Id);
+ }
+ }
+ Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreatePIHelperHttpMock());
NFM702Controller.callout(rowData.id, geList);
+ NFM702Controller.ManualExecute(rowData.id);
}
}
\ No newline at end of file
--
Gitblit v1.9.1