Example usage for org.apache.http.fake TestHttpResponse TestHttpResponse

List of usage examples for org.apache.http.fake TestHttpResponse TestHttpResponse

Introduction

In this page you can find the example usage for org.apache.http.fake TestHttpResponse TestHttpResponse.

Prototype

public TestHttpResponse(int statusCode, byte[] responseBody, Header... headers) 

Source Link

Usage

From source file:com.jaspersoft.android.jaspermobile.test.utils.TestResponses.java

public TestHttpResponse xml(String fileName) {
    BasicHeader contentType = new BasicHeader("Content-Type", "application/xml");
    return new TestHttpResponse(200, TestResources.get().rawData(fileName), contentType);
}