springboot 测试类

二次信任 提交于 2020-03-26 23:48:33
import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.test.context.SpringBootTest;import org.springframework.test.context.junit4.SpringRunner;import java.util.Arrays;import java.util.HashMap;import java.util.List;import java.util.Map;@RunWith(SpringRunner.class)@SpringBootTestpublic class StaticsServiceImplTest {    @Autowired    private TesterviceImpl service;    @Test    public void ff() {        Map map = new HashMap();        map.put("CXLX","1");        List<Map> list = service.test();        System.out.println(Arrays.toString(list.toArray()));    }    @Test    void fff() {    }}
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!