All Downloads are FREE. Search and download functionalities are using the official Maven repository.

apex.OASResponseMock.cls Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
@isTest
public class OASResponseMock implements HttpCalloutMock {
    private final HttpResponse response;
    private HttpRequest request;

    public OASResponseMock(HttpResponse response) {
        this.response = response;
    }

    public HttpResponse respond(HttpRequest request) {
        this.request = request;
        return response;
    }

    public HttpRequest getRequest() {
        return request;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy