小编Sta*_*del的帖子

如何使用内置框架对在Android中使用HttpClient的类进行单元测试?

我上课了:

public class WebReader implements IWebReader {

    HttpClient client;

    public WebReader() {
        client = new DefaultHttpClient();
    }

    public WebReader(HttpClient httpClient) {
        client = httpClient;
    }

    /**
     * Reads the web resource at the specified path with the params given.
     * @param path Path of the resource to be read.
     * @param params Parameters needed to be transferred to the server using POST method.
     * @param compression If it's needed to use compression. Default is <b>true</b>.
     * @return <p>Returns the string …
Run Code Online (Sandbox Code Playgroud)

android unit-testing httpclient

5
推荐指数
1
解决办法
7727
查看次数

标签 统计

android ×1

httpclient ×1

unit-testing ×1