This commit is contained in:
Your Name
2023-07-09 15:00:14 +08:00
parent 0fec6fb1ed
commit c661929a8e
3 changed files with 7 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ class CasesMajorTypeRepoDaoTest {
@Autowired
private CasesMajorTypeRepoDao casesMajorTypeRepoDao;
@Test
// @Test
void findCasesBy() {
ArrayList<String> params = new ArrayList<>();
params.add("27737267694995149");

View File

@@ -22,7 +22,7 @@ class CasesRecordDaoTest {
@Autowired
private CasesRecordDao casesRecordDao;
@Test
// @Test
void queryList() throws JsonProcessingException {
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]}";

View File

@@ -21,14 +21,14 @@ import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
@SpringBootTest
@ActiveProfiles("dev")
// @SpringBootTest
// @ActiveProfiles("dev")
class CasesServiceImplTest {
@Autowired
private ICasesService casesService;
@Test
// @Test
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]}";
ObjectMapper mapper = new ObjectMapper();
@@ -39,7 +39,7 @@ class CasesServiceImplTest {
System.out.println(casesV2);
}
@Test
// @Test
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]}";
ObjectMapper mapper = new ObjectMapper();
@@ -50,7 +50,7 @@ class CasesServiceImplTest {
System.out.println(casesV2);
}
@Test
// @Test
void queryCaseV2() {
CurrentUser currentUser = new CurrentUser();
currentUser.setAccountId("965342027497607168");