From 6947068a02499b9d1022f9efca5bcf1bdd3f1c70 Mon Sep 17 00:00:00 2001
From: Denny Chen <chenbangcai@prec-tech.com>
Date: 星期一, 28 二月 2022 10:45:11 +0800
Subject: [PATCH] Note test

---
 force-app/main/default/classes/InventoryAutoGiveupBatchTest.cls |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/InventoryAutoGiveupBatchTest.cls b/force-app/main/default/classes/InventoryAutoGiveupBatchTest.cls
index 30ed15c..f47f8e0 100644
--- a/force-app/main/default/classes/InventoryAutoGiveupBatchTest.cls
+++ b/force-app/main/default/classes/InventoryAutoGiveupBatchTest.cls
@@ -15,6 +15,11 @@
     static void setupTestData1() {
         // OLY_OCM-643 杩藉姞EscapeNFM001Trigger
         ControllerUtil.EscapeNFM001Trigger = true;
+        ControllerUtil.EscapeMaintenanceContractAfterUpdateTrigger = true;
+        StaticParameter.EscapeNFM001Trigger = true;
+        StaticParameter.EscapeNFM001AgencyContractTrigger = true;
+        StaticParameter.EscapeNFM001AgencyContractTrigger2 = true;
+        StaticParameter.EscapeMaintenanceContractAfterUpdateTrigger = true;
         // 鐥呴櫌銈掍綔銈�
         Account hospital = new Account();
         hospital.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Account' and DeveloperName = 'HP'].id;
@@ -326,7 +331,7 @@
             Test.startTest();
             InventoryAutoGiveupBatch batch = new InventoryAutoGiveupBatch();
             batch.emailMessages.add('TestMailMessage');
-            Id execBTId = Database.executeBatch(batch, 200);
+            Id execBTId = Database.executeBatch(batch, 1);
             Test.stopTest();
             System.assert(String.isNotBlank(execBTId));
             // 銈ㄣ儵銉笺儭銉笺儷銉嗐偣銉堛伄銇熴倎 鍏遍�欰ssert浣跨敤銇椼伨銇涖倱

--
Gitblit v1.9.1