MultiStaticResourceCalloutMock Class
Utility class used to specify a fake response using multiple
resources for testing HTTP callouts.
Namespace
Usage
Use the methods in this class to set the response properties for testing HTTP callouts. You can specify a resource for each endpoint.
MultiStaticResourceCalloutMock Constructors
The following are constructors for MultiStaticResourceCalloutMock.
MultiStaticResourceCalloutMock Methods
The following are methods for MultiStaticResourceCalloutMock. All are instance methods.
setStatus(httpStatus)
Signature
public Void setStatus(String httpStatus)
Parameters
- httpStatus
- Type: String
Return Value
Type: Void
setStatusCode(httpStatusCode)
Signature
public Void setStatusCode(Integer httpStatusCode)
Parameters
- httpStatusCode
- Type: Integer
Return Value
Type: Void