| | |
| | | public class TransferShippmentReceived5ControllerTest { |
| | | static private User u; |
| | | |
| | | @testSetup |
| | | // @testSetup |
| | | static void setupTestData1() { |
| | | StaticParameter.EscapeNFM001AgencyContractTrigger = true; |
| | | StaticParameter.EscapeNFM001Trigger = true; |
| | |
| | | } |
| | | @isTest |
| | | public static void test_init() { |
| | | //setupTestData1(); |
| | | setupTestData1(); |
| | | Test.startTest(); |
| | | System.runAs(u) { |
| | | List<TransferApplySummary__c> esList; |
| | |
| | | |
| | | @isTest |
| | | public static void test_save() { |
| | | //setupTestData1(); |
| | | setupTestData1(); |
| | | Oly_TriggerHandler.bypass('TransferApplyHandler'); |
| | | System.runAs(u) { |
| | | |
| | | List<TransferApplySummary__c> esList; |
| | |
| | | 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]; |