Browse Source

test删除resouce

zyh
小久哥 3 years ago
parent
commit
fbfaea3926
  1. 6
      zsw-farm/zsw-farm-impl/src/test/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImplTest.java

6
zsw-farm/zsw-farm-impl/src/test/java/cn/iocoder/yudao/module/farm/service/project/ProjectServiceImplTest.java

@ -110,7 +110,6 @@ public class ProjectServiceImplTest extends BaseDbUnitTest {
ProjectDO dbProject = randomPojo(ProjectDO.class, o -> { // 等会查询到
o.setName(null);
o.setContent(null);
o.setResources(null);
o.setImages(null);
o.setPlanStartTime(null);
o.setPlanEndTime(null);
@ -122,8 +121,6 @@ public class ProjectServiceImplTest extends BaseDbUnitTest {
projectMapper.insert(cloneIgnoreId(dbProject, o -> o.setName(null)));
// 测试 content 不匹配
projectMapper.insert(cloneIgnoreId(dbProject, o -> o.setContent(null)));
// 测试 resources 不匹配
projectMapper.insert(cloneIgnoreId(dbProject, o -> o.setResources(null)));
// 测试 images 不匹配
projectMapper.insert(cloneIgnoreId(dbProject, o -> o.setImages(null)));
// 测试 planStartTime 不匹配
@ -163,7 +160,6 @@ public class ProjectServiceImplTest extends BaseDbUnitTest {
ProjectDO dbProject = randomPojo(ProjectDO.class, o -> { // 等会查询到
o.setName(null);
o.setContent(null);
o.setResources(null);
o.setImages(null);
o.setPlanStartTime(null);
o.setPlanEndTime(null);
@ -175,8 +171,6 @@ public class ProjectServiceImplTest extends BaseDbUnitTest {
projectMapper.insert(cloneIgnoreId(dbProject, o -> o.setName(null)));
// 测试 content 不匹配
projectMapper.insert(cloneIgnoreId(dbProject, o -> o.setContent(null)));
// 测试 resources 不匹配
projectMapper.insert(cloneIgnoreId(dbProject, o -> o.setResources(null)));
// 测试 images 不匹配
projectMapper.insert(cloneIgnoreId(dbProject, o -> o.setImages(null)));
// 测试 planStartTime 不匹配

Loading…
Cancel
Save