function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
davidjbbdavidjbb 

Test Method

Hi Guys,

 

I need help with the following. I have another trigger that's not listed below, which im writing a test method for. How do I send invokeGAE in the test method as false so it does not trigger the web service call out.

*note the code below are in a separate package, so in the test method how do I reference the invokeGAE

 

 

public with sharing class FieldworkerTriggerConstant {

public static boolean invokeGAE = true;

}

 

//Does a web service call out

trigger FieldworkerGAE on Fieldworker_Name__c (after insert, after update, after delete)

{

if(FieldworkerTriggerConstant.invokeGAE==true)

{

}

}