Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Live template
templateTypetemplate
templateOption{"label":"FAQ Knowledge Base Template v4 Cloud Migration Ready v2","value":"975385007470811132","templateType":"template"}
templateTypeOption{"label":"Confluence template/blueprint","value":"template"}
templateId975385007excerptPurpose 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  JCFS.JiraTriggerTestHelper.testAfterInsert('<OBJECT_NAME>')   method will generate a random  <'OBJECT_NAME'> 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); } }470811132
excerptSummary Environment Diagnostics Steps Cause Workaround Resolution
fieldGroupKeys{"8gq4t5y21n":["net.customware.confluence.plugin.scaffolding__8gq4t5y21n__data_0_1ny3pidpun"]}