From 3ba0123db48f8bab81ddf0913e1b95280ef545e8 Mon Sep 17 00:00:00 2001 From: Li Jun <buli@deloitte.com.cn> Date: 星期四, 31 三月 2022 17:56:53 +0800 Subject: [PATCH] Deploy0331 --- force-app/main/default/classes/InstructReportControllerTest.cls | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/force-app/main/default/classes/InstructReportControllerTest.cls b/force-app/main/default/classes/InstructReportControllerTest.cls index bce6c20..3e232f2 100644 --- a/force-app/main/default/classes/InstructReportControllerTest.cls +++ b/force-app/main/default/classes/InstructReportControllerTest.cls @@ -1,6 +1,8 @@ @isTest private class InstructReportControllerTest { - @TestSetup static void init() { + @TestSetup + static void makeData(){ + TestDataUtility.CreatePIPolicyConfiguration('Contact'); RecordType rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Hp']; List<RecordType> rectDpt = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName IN ('Department_GI', 'Department_BF') order by DeveloperName desc]; Account acc = new Account(); @@ -74,8 +76,8 @@ tempARS.Instruct_report__c = temIR.id; tempARS.Department__c = depart2.id ; insert tempARS; - - } + } + @isTest static void test_init() { // Implement test code @@ -168,5 +170,9 @@ cmc.EditRecord(); cmc.getInputdisabled(); cmc.cancel(); + + Integer i = cmc.CheckedCnt; + Integer j = cmc.unCheckedCnt; + Boolean tf = cmc.getIsServiceDesignDep(); } } \ No newline at end of file -- Gitblit v1.9.1