Demo.java 977 Bytes
package com.huaheng.test;

import com.huaheng.HuaHengApplication;
import com.huaheng.pc.inventory.inventoryDetail.domain.InventoryDetail;
import com.huaheng.pc.inventory.inventoryDetail.service.InventoryDetailService;
import lombok.extern.slf4j.Slf4j;
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.List;

/**
 * @author yiwenpeng
 * @date 2023/7/20 09:49
 */
@Slf4j
@SpringBootTest(classes = HuaHengApplication.class)
@RunWith(SpringRunner.class)
public class Demo {
    @Autowired
    private InventoryDetailService inventoryDetailService;

    @Test
    public void test() {
        List<InventoryDetail> list = inventoryDetailService.list();
        log.error("***********************************************");
        System.out.println(list.get(0));
    }
}