+ Start a Discussion
Ken Koellner 7Ken Koellner 7 

Testing Gap Events in Change Data Capture Apex Triggers

I'm writing Apex trigger code to handle Change Data Capture.  I've written test methods to handle change events.  But I've also written code to hanlde GAP_CREATE, GAP_UPDATE, GAP_UNDELETE, GAP_UNDELETE, and GAP_OVERFLOW.  I don't see anything in the documentation to simulate those Events.  Regular DMLs can be done and Test.spot() can be used to send the regular Events.

Anyone know how to send these Events in an Apex Test Method?

(Please, if you knowledge does not extend to handling GAP events in CDC, do not answer with some other answer that is not germane to this question.)