mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 20:36:50 +08:00
testedit
This commit is contained in:
@@ -18,7 +18,7 @@ class CasesMajorTypeRepoDaoTest {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private CasesMajorTypeRepoDao casesMajorTypeRepoDao;
|
private CasesMajorTypeRepoDao casesMajorTypeRepoDao;
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void findCasesBy() {
|
void findCasesBy() {
|
||||||
ArrayList<String> params = new ArrayList<>();
|
ArrayList<String> params = new ArrayList<>();
|
||||||
params.add("27737267694995149");
|
params.add("27737267694995149");
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class CasesRecordDaoTest {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private CasesRecordDao casesRecordDao;
|
private CasesRecordDao casesRecordDao;
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void queryList() throws JsonProcessingException {
|
void queryList() throws JsonProcessingException {
|
||||||
PageRequest of = PageRequest.of(0, 10);
|
PageRequest of = PageRequest.of(0, 10);
|
||||||
String jsonStr = "{\"pageIndex\":1,\"pageSize\":10,\"orderField\":\"excellent\",\"majorType\":\"\",\"orgDomainDtos\":[],\"orderAsc\":false,\"excellent\":true,\"breCommend\":true,\"caseType\":\"\",\"authorName\":\"\",\"notInIds\":[],\"type\":\"recommend\",\"userId\":\"\",\"parent\":\"\",\"children\":[],\"name\":\"\",\"years\":[2023,2022,2020,2021]}";
|
String jsonStr = "{\"pageIndex\":1,\"pageSize\":10,\"orderField\":\"excellent\",\"majorType\":\"\",\"orgDomainDtos\":[],\"orderAsc\":false,\"excellent\":true,\"breCommend\":true,\"caseType\":\"\",\"authorName\":\"\",\"notInIds\":[],\"type\":\"recommend\",\"userId\":\"\",\"parent\":\"\",\"children\":[],\"name\":\"\",\"years\":[2023,2022,2020,2021]}";
|
||||||
|
|||||||
@@ -21,14 +21,14 @@ import java.util.List;
|
|||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
@SpringBootTest
|
// @SpringBootTest
|
||||||
@ActiveProfiles("dev")
|
// @ActiveProfiles("dev")
|
||||||
class CasesServiceImplTest {
|
class CasesServiceImplTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ICasesService casesService;
|
private ICasesService casesService;
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void queryPageCasesV2() throws JsonProcessingException {
|
void queryPageCasesV2() throws JsonProcessingException {
|
||||||
String jsonStr = "{\"pageIndex\":1,\"pageSize\":10,\"orderField\":\"excellent\",\"majorType\":\"\",\"orgDomainDtos\":[],\"orderAsc\":false,\"excellent\":true,\"breCommend\":true,\"caseType\":\"\",\"authorName\":\"\",\"notInIds\":[],\"type\":\"recommend\",\"userId\":\"\",\"parent\":\"\",\"children\":[],\"name\":\"\",\"years\":[2023,2022,2020,2021]}";
|
String jsonStr = "{\"pageIndex\":1,\"pageSize\":10,\"orderField\":\"excellent\",\"majorType\":\"\",\"orgDomainDtos\":[],\"orderAsc\":false,\"excellent\":true,\"breCommend\":true,\"caseType\":\"\",\"authorName\":\"\",\"notInIds\":[],\"type\":\"recommend\",\"userId\":\"\",\"parent\":\"\",\"children\":[],\"name\":\"\",\"years\":[2023,2022,2020,2021]}";
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
@@ -39,7 +39,7 @@ class CasesServiceImplTest {
|
|||||||
System.out.println(casesV2);
|
System.out.println(casesV2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void queryRecommendPageCasesV2() throws JsonProcessingException {
|
void queryRecommendPageCasesV2() throws JsonProcessingException {
|
||||||
String jsonStr = "{\"pageIndex\":1,\"pageSize\":5,\"majorType\":\"\",\"orderAsc\":false,\"excellent\":false,\"orgDomainDtos\":[],\"caseType\":\"\",\"authorName\":\"\",\"notInIds\":[],\"type\":\"recommend\",\"userId\":\"\",\"parent\":\"\",\"children\":[],\"name\":\"\",\"years\":[2023]}";
|
String jsonStr = "{\"pageIndex\":1,\"pageSize\":5,\"majorType\":\"\",\"orderAsc\":false,\"excellent\":false,\"orgDomainDtos\":[],\"caseType\":\"\",\"authorName\":\"\",\"notInIds\":[],\"type\":\"recommend\",\"userId\":\"\",\"parent\":\"\",\"children\":[],\"name\":\"\",\"years\":[2023]}";
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
@@ -50,7 +50,7 @@ class CasesServiceImplTest {
|
|||||||
System.out.println(casesV2);
|
System.out.println(casesV2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
// @Test
|
||||||
void queryCaseV2() {
|
void queryCaseV2() {
|
||||||
CurrentUser currentUser = new CurrentUser();
|
CurrentUser currentUser = new CurrentUser();
|
||||||
currentUser.setAccountId("965342027497607168");
|
currentUser.setAccountId("965342027497607168");
|
||||||
|
|||||||
Reference in New Issue
Block a user