mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-01 02:38:43 +08:00 
			
		
		
		
	infra:完善 config 的单元测试
This commit is contained in:
		| @@ -34,6 +34,7 @@ import java.util.Collections; | ||||
| import java.util.List; | ||||
|  | ||||
| import static cn.iocoder.yudao.framework.common.util.collection.SetUtils.asSet; | ||||
| import static cn.iocoder.yudao.framework.common.util.date.LocalDateTimeUtils.buildBetweenTime; | ||||
| import static cn.iocoder.yudao.framework.common.util.date.LocalDateTimeUtils.buildTime; | ||||
| import static cn.iocoder.yudao.framework.common.util.object.ObjectUtils.cloneIgnoreId; | ||||
| import static cn.iocoder.yudao.framework.test.core.util.AssertUtils.assertPojoEquals; | ||||
| @@ -310,7 +311,7 @@ public class TenantServiceImplTest extends BaseDbUnitTest { | ||||
|         reqVO.setContactName("艿"); | ||||
|         reqVO.setContactMobile("1560"); | ||||
|         reqVO.setStatus(CommonStatusEnum.ENABLE.getStatus()); | ||||
|         reqVO.setCreateTime(new LocalDateTime[]{buildTime(2020, 12, 1),buildTime(2020, 12, 24)}); | ||||
|         reqVO.setCreateTime(buildBetweenTime(2020, 12, 1, 2020, 12, 24)); | ||||
|  | ||||
|         // 调用 | ||||
|         PageResult<TenantDO> pageResult = tenantService.getTenantPage(reqVO); | ||||
| @@ -347,7 +348,7 @@ public class TenantServiceImplTest extends BaseDbUnitTest { | ||||
|         reqVO.setContactName("艿"); | ||||
|         reqVO.setContactMobile("1560"); | ||||
|         reqVO.setStatus(CommonStatusEnum.ENABLE.getStatus()); | ||||
|         reqVO.setCreateTime(new LocalDateTime[]{buildTime(2020, 12, 1),buildTime(2020, 12, 24)}); | ||||
|         reqVO.setCreateTime(buildBetweenTime(2020, 12, 1, 2020, 12, 24)); | ||||
|  | ||||
|         // 调用 | ||||
|         List<TenantDO> list = tenantService.getTenantList(reqVO); | ||||
| @@ -356,7 +357,6 @@ public class TenantServiceImplTest extends BaseDbUnitTest { | ||||
|         assertPojoEquals(dbTenant, list.get(0)); | ||||
|     } | ||||
|  | ||||
|  | ||||
|     @Test | ||||
|     public void testGetTenantByName() { | ||||
|         // mock 数据 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV