@isTest
|
private class LexCICInputSolutionControllerTest {
|
|
|
@isTest
|
public static void testInitCICInputSolution() {
|
Test.StartTest();
|
Case casetemp = new Case();
|
casetemp.inquiry_detail__c='test inquiry_detail__c';
|
casetemp.answer_detail_content__c='test answer_detail_content__c';
|
insert casetemp;
|
LexCICInputSolutionController.initCICInputSolution(casetemp.Id);
|
|
Test.stopTest();
|
}
|
|
@isTest
|
public static void testInitCustomClone() {
|
Test.StartTest();
|
String caseRecordType = [select Id,DeveloperName from RecordType where SobjectType = 'Case' and DeveloperName = 'CICRecordType'].Id;
|
Case casetemp = new Case();
|
casetemp.inquiry_detail__c='test inquiry_detail__c';
|
casetemp.answer_detail_content__c='test answer_detail_content__c';
|
insert casetemp;
|
LexCICInputSolutionController.initCustomClone(casetemp.Id);
|
|
Test.stopTest();
|
}
|
}
|