From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新
---
force-app/main/default/classes/RentalAgencyReceivedControllerTest.cls | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/classes/RentalAgencyReceivedControllerTest.cls b/force-app/main/default/classes/RentalAgencyReceivedControllerTest.cls
index 67cb559..4bc663b 100644
--- a/force-app/main/default/classes/RentalAgencyReceivedControllerTest.cls
+++ b/force-app/main/default/classes/RentalAgencyReceivedControllerTest.cls
@@ -796,6 +796,8 @@
// 1 涓讳綋涓婃灦锛�2 涓讳綋璋冩嫧锛�3闄勫睘鍝佷笂鏋�
@isTest
public static void test_stockup_AfterMainTransfer() {
+ Oly_TriggerHandler.bypass(AssetHandler.class.getName());
+
setupTestData2();
List<Rental_Apply_Equipment_Set_Detail__c> raesds = [
@@ -865,7 +867,9 @@
// 1 闄勫睘鍝佷笂鏋讹紝2 闄勫睘鍝侀儴鍒嗚皟鎷紝3涓讳綋涓婃灦
@isTest
public static void test_stockup_AfterAccessoryTransfer() {
+ Oly_TriggerHandler.bypass(AssetHandler.class.getName());
setupTestData2();
+
List<Rental_Apply__c> raList = [SELECT Id FROM Rental_Apply__c];
PageReference ref = new PageReference('/apex/RentalAgencyReceived?id=' + raList[0].Id);
@@ -886,7 +890,6 @@
controller.esdList[2].lostFinished = 'OK';
controller.esdList[2].cdsFinished = 'OK';
- Test.startTest();
controller.lostAndCDS();
System.assertEquals('娆犲搧', controller.esdList[0].rec.Check_lost_Item__c);
System.assertEquals(false, controller.esdList[0].rec.CDS_complete__c);
@@ -896,6 +899,8 @@
System.assertEquals(true, controller.esdList[2].rec.CDS_complete__c);
System.assertEquals(true, controller.done_flg);
+ Test.startTest();
+
controller.stepName = '鍥炲簱纭';
controller.esdList[0].checked = true;
controller.esdList[1].rec.Arrival_wh_Result_Agency__c = '寰呬慨鐞�';
--
Gitblit v1.9.1