From c9e23fe4ab15bc4b648a553d2172d0a74e1e1a74 Mon Sep 17 00:00:00 2001
From: l <511036524@qq.com>
Date: 星期五, 11 三月 2022 17:27:41 +0800
Subject: [PATCH] StateCityUtilTest
---
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