| | |
| | | /** |
| | | * @description 最新预计归还日单个变更测试 --- 最新预定归还日_修理删除 |
| | | **/ |
| | | static testMethod void testExecute3() { |
| | | /*static testMethod void testExecute3() { |
| | | User user = new User(Test_staff__c = true); |
| | | user.LastName = '_サンブリッジ'; |
| | | user.FirstName = 'う'; |
| | |
| | | System.assertEquals(Date.today().addDays(7), raesList[0].Min_Final_reply_day_F__c); |
| | | System.assertEquals(Date.today().addDays(7), raesList[0].Min_Final_reply_day_Text__c); |
| | | } |
| | | } |
| | | }*/ |
| | | |
| | | /** |
| | | * @description 最新预计归还日单个变更测试 --- 最新预定归还日_修理取消 |
| | | **/ |
| | | static testMethod void testExecute4() { |
| | | /*static testMethod void testExecute4() { |
| | | User user = new User(Test_staff__c = true); |
| | | user.LastName = '_サンブリッジ'; |
| | | user.FirstName = 'う'; |
| | |
| | | System.assertEquals(Date.today().addDays(8), raesList[0].Repair_cancel_Final_reply_day_Text__c); |
| | | System.assertEquals(Date.today().addDays(8), raesList[0].Min_Final_reply_day_Text__c); |
| | | } |
| | | } |
| | | }*/ |
| | | |
| | | /** |
| | | * @description 最新预计归还日单个变更测试 --- 最新预定归还日_修理品返送日 |
| | | **/ |
| | | static testMethod void testExecute5() { |
| | | /*static testMethod void testExecute5() { |
| | | User user = new User(Test_staff__c = true); |
| | | user.LastName = '_サンブリッジ'; |
| | | user.FirstName = 'う'; |
| | |
| | | System.assertEquals(Date.today().addDays(14), raesList[0].Return_to_office_Final_reply_day_Text__c); |
| | | System.assertEquals(Date.today().addDays(14), raesList[0].Min_Final_reply_day_Text__c); |
| | | } |
| | | } |
| | | }*/ |
| | | |
| | | /** |
| | | * @description 最新预计归还日复数变更测试 --- 最新预定归还日_修理品返送日 + 最新预定归还日_修理取消 |
| | | **/ |
| | | static testMethod void testExecute6() { |
| | | /*static testMethod void testExecute6() { |
| | | User user = new User(Test_staff__c = true); |
| | | user.LastName = '_サンブリッジ'; |
| | | user.FirstName = 'う'; |
| | |
| | | System.assertEquals(Date.today().addDays(14), raesList[0].Return_to_office_Final_reply_day_Text__c); |
| | | System.assertEquals(Date.today().addDays(8), raesList[0].Min_Final_reply_day_Text__c); |
| | | } |
| | | } |
| | | }*/ |
| | | |
| | | static void setupTestData1(Boolean haveFCheck) { |
| | | StaticParameter.EscapeNFM001AgencyContractTrigger = true; |
| | |
| | | /** |
| | | * @description 7天和10天工作日更新 |
| | | **/ |
| | | static testMethod void testExecute7() { |
| | | /*static testMethod void testExecute7() { |
| | | System.runAs(new User(Id = Userinfo.getUserId())) { |
| | | StaticParameter.EscapeNFM001AgencyContractTrigger = true; |
| | | StaticParameter.EscapeNFM001Trigger = true; |
| | |
| | | System.assertEquals(workday[7].Date__c, raesList[0].Bollow_Date_Add_7_WD__c); |
| | | System.assertEquals(workday[10].Date__c, raesList[0].Bollow_Date_Add_10_WD__c); |
| | | } |
| | | } |
| | | }*/ |
| | | |
| | | /** |
| | | * @description 7天工作日和F-》Text同时更新 |
| | | **/ |
| | | static testMethod void testExecute8() { |
| | | /*static testMethod void testExecute8() { |
| | | System.runAs(new User(Id = Userinfo.getUserId())) { |
| | | StaticParameter.EscapeNFM001AgencyContractTrigger = true; |
| | | StaticParameter.EscapeNFM001Trigger = true; |
| | |
| | | |
| | | |
| | | } |
| | | } |
| | | }*/ |
| | | |
| | | /** |
| | | * @description 7天工作日和F-》Text同时更新 |
| | |
| | | } |
| | | } |
| | | |
| | | static testMethod void testSchedule() { |
| | | /*static testMethod void testSchedule() { |
| | | // This test runs a scheduled job at midnight Sept. 3rd. 2022 |
| | | String CRON_EXP = '0 0 0 3 9 ? 2022'; |
| | | |
| | |
| | | // Verify the next time the job will run |
| | | System.assertEquals('2022-09-03 00:00:00', String.valueOf(ct.NextFireTime)); |
| | | System.Test.StopTest(); |
| | | } |
| | | }*/ |
| | | } |