| | |
| | | @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(); |
| | |
| | | tempARS.Instruct_report__c = temIR.id; |
| | | tempARS.Department__c = depart2.id ; |
| | | insert tempARS; |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | @isTest static void test_init() { |
| | | // Implement test code |
| | |
| | | cmc.EditRecord(); |
| | | cmc.getInputdisabled(); |
| | | cmc.cancel(); |
| | | |
| | | Integer i = cmc.CheckedCnt; |
| | | Integer j = cmc.unCheckedCnt; |
| | | Boolean tf = cmc.getIsServiceDesignDep(); |
| | | } |
| | | } |