import org.junit.Test;
public abstract class CacheHeaderTestBase extends SolrJettyTestBase {
protected HttpMethodBase getSelectMethod(String method) {
CommonsHttpSolrServer httpserver = (CommonsHttpSolrServer)getSolrServer();
HttpMethodBase m = null;
if ("GET".equals(method)) {
m = new GetMethod(httpserver.getBaseURL() + "/select");
} else if ("HEAD".equals(method)) {
m = new HeadMethod(httpserver.getBaseURL() + "/select");
} else if ("POST".equals(method)) {
m = new PostMethod(httpserver.getBaseURL() + "/select");
}
m.setQueryString(new NameValuePair[] { new NameValuePair("q", "solr"),
new NameValuePair("qt", "standard") });
return m;
}