package com.hxhq.business.service;

import com.hxhq.system.HxhqSystemApplication;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.util.Assert;

import java.util.List;


@SpringBootTest(classes = HxhqSystemApplication.class,webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class ITestServiceTest {


    @Autowired
    private ITestService testService;

    @Test
    public void test() {
        List<com.hxhq.business.domain.Test> list = testService.list();
        Assertions.assertEquals(20, list.size(), "数量错误");
    }
}