templateType | template |
---|
templateOption | {"label":"FAQ Template Cloud Ready v2","value":"975385007","templateType":"template"} |
---|
templateTypeOption | {"label":"Confluence template/blueprint","value":"template"} |
---|
templateId | 975385007 |
---|
excerpt | Purpose When running the Test Helper to test coverage in deploying to a Production environment, users with a complex setup may run into some problems. For example: This is because currently, the method will generate a random and run the generated object. Answer Therefore, for more complex object setups, use the method instead. Here's an example for CaseTriggerTest with a self-created Salesforce Object: @isTest public class CaseTriggerTest { @isTest static void caseAfterInsertTest(){ SObjectType t = Schema.getGlobalDescribe().get('Case'); SObject obj = t.newSobject(); obj.put('Subject', 'ABC'); // set a valid record JCFS.JiraTriggerTestHelper.testAfterInsert(obj); } @isTest static void caseAfterUpdateTest(){ SObjectType t = Schema.getGlobalDescribe().get('Case'); SObject obj = t.newSobject(); obj.put('Subject', 'ABC'); // set a valid record JCFS.JiraTriggerTestHelper.testAfterUpdate(obj); } } |
---|
fieldGroupKeys | {"8gq4t5y21n":["net.customware.confluence.plugin.scaffolding__8gq4t5y21n__data_0_8kdmsef74m0mkggbbh0f"]} |
---|
|