Li Jun
2022-03-31 3ba0123db48f8bab81ddf0913e1b95280ef545e8
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();
   }
}