From 01f207d979d6be17c8cdec293feab48828c0ec3e Mon Sep 17 00:00:00 2001 From: 黄千龙 <huangqianlong@prec-tech.com> Date: 星期五, 08 四月 2022 14:22:52 +0800 Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlyMEBG --- 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