插件开发工具库,推荐依赖该工具库。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
712 B

package com.fanruan.api.decision.webservice;
import org.junit.Assert;
import org.junit.Test;
/**
* @author lidongy
* @version 10.0
* Created by lidongy on 2019/10/25
*/
public class ResponseTest {
@Test
public void testResponse() throws Exception{
Response response = new Response();
response.setData("data");
response.setErrorCode("404");
response.setErrorMsg("fail to connect");
response.setStatus(3);
Assert.assertEquals(response.getData(), "data");
Assert.assertEquals(response.getErrorCode(), "404");
Assert.assertEquals(response.getErrorMsg(), "fail to connect");
Assert.assertEquals(response.getStatus(), 3);
}
}