package org.mockserver.mockservlet.integration;

import org.mockserver.mock.action.ExpectationForwardCallback;
import org.mockserver.model.HttpRequest;

import java.util.ArrayList;
import java.util.List;

import static org.mockserver.model.HttpRequest.request;

/**
 * @author jamesdbloom
 */
public class TestClasspathTestExpectationForwardCallback implements ExpectationForwardCallback {

    public static final List<HttpRequest> httpRequests = new ArrayList<HttpRequest>();
    public static HttpRequest httpRequestToReturn = request();

    @Override
    public HttpRequest handle(HttpRequest httpRequest) {
        httpRequests.add(httpRequest);
        return httpRequestToReturn;
    }
}
