In Salesforce Apex it is possible to code a custom email handler by implementing the Messaging.InboundEmailHandler interface. Obviously it is possible to code a test class that mocks inbound emails and test-fires its methods. As usual all data created during the execution of test methods is rolled back after the test completes. Good!
However, when using the standard email-to-case settings there is no Apex code and therefore no test class can be coded to cover that functionality. However I still would like to have mock inbound emails to test the standard email-to-case functionality in a various test scenarios, without committing to the database.
How would I go about that?
Aucun commentaire:
Enregistrer un commentaire