What is the correct way to approach testing Salesforce Connect custom adapters? Perhaps there is a unified approach to testing all of its parts, but specifically what is the approach for testing the following items:
- getCapabilities method
- getAuthenticationCapabilities method
- getConnection method
- sync method
- query method
- search method
I assume that we can simply run queries for our external objects for the
search methods of the Connection class, which also hits the
getCapabilities method of the Provider class. With that, I'm assuming we can do a normal web service mock for the test.
What's the best way to approach the rest of these items?