Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Live template
templateTypetemplate
templateOption{"label":"FAQ Template Cloud Ready v2","value":"975385007","templateType":"template"}
templateTypeOption{"label":"Confluence template/blueprint","value":"template"}
templateId975385007
excerptPurpose 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"]}