package com.estate.expert.admin.service; import com.estate.expert.admin.domain.common.request.PageReq; import com.estate.expert.admin.domain.business.client.ClientType; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit.jupiter.SpringExtension; /** * @author ligf * @Description * @date 2023-09-05 **/ @Slf4j @SpringBootTest @ExtendWith(SpringExtension.class) public class ContractServiceTest { @Autowired private ContractService contractService; @Test public void testList() { var response = contractService.list("no", ClientType.DEVELOPER, null, PageReq.of(0, 10)); Assertions.assertFalse(response.getList().isEmpty()); response = contractService.list("no", null, null, PageReq.of(0, 10)); Assertions.assertFalse(response.getList().isEmpty()); } }