This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A registry built around the Salesforce Mocking API that allows declarative mocking of HTTP callouts. Mocks responses | |
* can be registered either for a specific endpoint and path or for all paths on an endpoint, with the former taking | |
* precedence. | |
*/ | |
@IsTest | |
public class HttpMockRegistry { | |
// Default mock response for HTTP requests | |
public static final HttpResponse DEFAULT_MOCK_RESPONSE = createSuccessResponse('Default mock response'); |