MatrixTest.java 605 Bytes
Newer Older
1 2
package com.ruoyi;

王飞's avatar
王飞 committed
3 4 5
import cn.hutool.json.JSONUtil;
import com.ruoyi.service.MatrixService;
import com.ruoyi.web.response.MatrixResponse;
6
import org.junit.jupiter.api.Test;
王飞's avatar
王飞 committed
7
import org.springframework.beans.factory.annotation.Autowired;
8 9 10 11 12 13 14
import org.springframework.boot.test.context.SpringBootTest;

import java.util.ArrayList;

@SpringBootTest
public class MatrixTest {

王飞's avatar
王飞 committed
15 16
    @Autowired
    private MatrixService matrixService;
17 18
    @Test
    public void generateMatrixTest() {
王飞's avatar
王飞 committed
19 20
        MatrixResponse matrix = matrixService.getMatrix();
        System.out.println(JSONUtil.toJsonPrettyStr(matrix));
21 22 23
    }

}