package com.usoftchina.bi.test.server.service.dashboard;

import com.alibaba.fastjson.JSON;
import com.usoftchina.bi.core.utils.JsonUtils;
import com.usoftchina.bi.server.Application;
import com.usoftchina.bi.server.model.vo.dataVo.DashboardMenuRespDTO;
import com.usoftchina.bi.server.service.dashboard.DashBoardMenuService;
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.SpringJUnit4ClassRunner;

import java.util.List;

/**
 * 看板目录测试
 * @Author chenwei
 * @Date 2019-04-19
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = Application.class)
public class DashBoardMenuServiceTest {

    @Autowired
    private DashBoardMenuService dashBoardMenuService;

    @Test
    public void testList(){
        List<DashboardMenuRespDTO> dashboardMenuRespDTOList = dashBoardMenuService.list("");
        System.out.println(JsonUtils.toJsonString(dashboardMenuRespDTOList));
        System.out.println(JSON.toJSONString(dashboardMenuRespDTOList));
    }

}
