From ca51336f247021aa79b8863522e15e8dee957e19 Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期一, 21 三月 2022 10:19:49 +0800
Subject: [PATCH] 盘点Copy邮件标头修改
---
force-app/main/default/classes/TransferShippmentReceived5ControllerTest.cls | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/force-app/main/default/classes/TransferShippmentReceived5ControllerTest.cls b/force-app/main/default/classes/TransferShippmentReceived5ControllerTest.cls
index 3d0ecb5..e38c9ec 100644
--- a/force-app/main/default/classes/TransferShippmentReceived5ControllerTest.cls
+++ b/force-app/main/default/classes/TransferShippmentReceived5ControllerTest.cls
@@ -2,7 +2,7 @@
public class TransferShippmentReceived5ControllerTest {
static private User u;
- @testSetup
+ // @testSetup
static void setupTestData1() {
StaticParameter.EscapeNFM001AgencyContractTrigger = true;
StaticParameter.EscapeNFM001Trigger = true;
@@ -336,7 +336,7 @@
}
@isTest
public static void test_init() {
- //setupTestData1();
+ setupTestData1();
Test.startTest();
System.runAs(u) {
List<TransferApplySummary__c> esList;
@@ -374,7 +374,8 @@
@isTest
public static void test_save() {
- //setupTestData1();
+ setupTestData1();
+ Oly_TriggerHandler.bypass('TransferApplyHandler');
System.runAs(u) {
List<TransferApplySummary__c> esList;
@@ -388,10 +389,10 @@
controller.init();
System.assertEquals(true, controller.esdList[0].editable);
- Test.startTest();
+ // Test.startTest();
controller.esdList[0].rec.Inspection_result_after__c = 'OK';
controller.save();
- Test.stopTest();
+ // Test.stopTest();
List<TransferApplyDetail__c> erList;
erList = [select Inspection_result_after__c from TransferApplyDetail__c WHERE Id=:controller.esdList[0].rec.Id];
--
Gitblit v1.9.1