|
|
|
@ -109,15 +109,12 @@ public class TaskCateServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
// mock 数据
|
|
|
|
|
TaskCateDO dbTaskCate = randomPojo(TaskCateDO.class, o -> { // 等会查询到
|
|
|
|
|
o.setParentId(null); |
|
|
|
|
o.setProjectId(null); |
|
|
|
|
o.setName(null); |
|
|
|
|
o.setCreateTime(null); |
|
|
|
|
}); |
|
|
|
|
taskCateMapper.insert(dbTaskCate); |
|
|
|
|
// 测试 parentId 不匹配
|
|
|
|
|
taskCateMapper.insert(cloneIgnoreId(dbTaskCate, o -> o.setParentId(null))); |
|
|
|
|
// 测试 projectId 不匹配
|
|
|
|
|
taskCateMapper.insert(cloneIgnoreId(dbTaskCate, o -> o.setProjectId(null))); |
|
|
|
|
// 测试 name 不匹配
|
|
|
|
|
taskCateMapper.insert(cloneIgnoreId(dbTaskCate, o -> o.setName(null))); |
|
|
|
|
// 测试 createTime 不匹配
|
|
|
|
@ -125,7 +122,6 @@ public class TaskCateServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
// 准备参数
|
|
|
|
|
TaskCatePageReqVO reqVO = new TaskCatePageReqVO(); |
|
|
|
|
reqVO.setParentId(null); |
|
|
|
|
reqVO.setProjectId(null); |
|
|
|
|
reqVO.setName(null); |
|
|
|
|
reqVO.setBeginCreateTime(null); |
|
|
|
|
reqVO.setEndCreateTime(null); |
|
|
|
@ -144,15 +140,12 @@ public class TaskCateServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
// mock 数据
|
|
|
|
|
TaskCateDO dbTaskCate = randomPojo(TaskCateDO.class, o -> { // 等会查询到
|
|
|
|
|
o.setParentId(null); |
|
|
|
|
o.setProjectId(null); |
|
|
|
|
o.setName(null); |
|
|
|
|
o.setCreateTime(null); |
|
|
|
|
}); |
|
|
|
|
taskCateMapper.insert(dbTaskCate); |
|
|
|
|
// 测试 parentId 不匹配
|
|
|
|
|
taskCateMapper.insert(cloneIgnoreId(dbTaskCate, o -> o.setParentId(null))); |
|
|
|
|
// 测试 projectId 不匹配
|
|
|
|
|
taskCateMapper.insert(cloneIgnoreId(dbTaskCate, o -> o.setProjectId(null))); |
|
|
|
|
// 测试 name 不匹配
|
|
|
|
|
taskCateMapper.insert(cloneIgnoreId(dbTaskCate, o -> o.setName(null))); |
|
|
|
|
// 测试 createTime 不匹配
|
|
|
|
@ -160,7 +153,6 @@ public class TaskCateServiceImplTest extends BaseDbUnitTest {
|
|
|
|
|
// 准备参数
|
|
|
|
|
TaskCateExportReqVO reqVO = new TaskCateExportReqVO(); |
|
|
|
|
reqVO.setParentId(null); |
|
|
|
|
reqVO.setProjectId(null); |
|
|
|
|
reqVO.setName(null); |
|
|
|
|
reqVO.setBeginCreateTime(null); |
|
|
|
|
reqVO.setEndCreateTime(null); |
|
|
|
|