“mitao”
2026-01-20 4e5beb844f03daec12f2b039365730b0683f8a9e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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());
    }
 
}