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
Ken Koellner @ EngagewareKen Koellner @ Engageware 

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.)