高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
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 = '待修理';