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); } }