Test Archive Callouts in Apex with Mock HTTP Responses

Mock archive callouts in your Apex test classes to test Archive Apex functionality without making actual HTTP requests to the archive service. Previously, customers couldn't mock archive callouts, which prevented complete unit testing of Apex code that uses Archive Apex.

Where: This change applies to Archive 2.0 in Developer, Enterprise, and Performance editions with the Archive add-on license.

How: In your Apex test class, call SF_Archive.ArchiverAccessor.setMock and pass in your mock HttpCalloutMock implementation before testing Archive Apex methods.