package com.huansi.api;

import com.alibaba.fastjson.JSONObject;
import com.huansi.client.functions.Download;
import com.huansi.client.functions.Login;
import org.junit.Test;

public class DownloadRequestTest {

    @Test
    public void download() {
        TestClient client = new TestClient();
        client.config();
        LoginRequest loginRequest = new Login();
        loginRequest.login();

        DownloadRequest downloadRequest = new Download();
        System.out.println(JSONObject.toJSONString(downloadRequest.download()));
    }

    @Test
    public void downloadResponse() {
        TestClient client = new TestClient();
        client.config();
        LoginRequest loginRequest = new Login();
        loginRequest.login();

        DownloadRequest downloadRequest = new Download();
        System.out.println(JSONObject.toJSONString(downloadRequest.downloadResponse("1",true,"成功")));
    }
}