mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-01 02:38:43 +08:00 
			
		
		
		
	system:将 biz 的方法名的负数都换成 List
This commit is contained in:
		| @@ -60,7 +60,7 @@ public class SensitiveWordServiceImplTest extends BaseDbUnitTest { | ||||
|         // 调用 | ||||
|         sensitiveWordService.initLocalCache(); | ||||
|         // 断言 sensitiveWordTagsCache 缓存 | ||||
|         assertEquals(SetUtils.asSet("论坛", "蔬菜"), sensitiveWordService.getSensitiveWordTags()); | ||||
|         assertEquals(SetUtils.asSet("论坛", "蔬菜"), sensitiveWordService.getSensitiveWordTagSet()); | ||||
|         // 断言 tagSensitiveWordTries 缓存 | ||||
|         assertNotNull(sensitiveWordService.getDefaultSensitiveWordTrie()); | ||||
|         assertEquals(2, sensitiveWordService.getTagSensitiveWordTries().size()); | ||||
|   | ||||
| @@ -81,13 +81,13 @@ public class TenantServiceImplTest extends BaseDbUnitTest { | ||||
|     } | ||||
|  | ||||
|     @Test | ||||
|     public void testGetTenantIds() { | ||||
|     public void testGetTenantIdList() { | ||||
|         // mock 数据 | ||||
|         TenantDO tenant = randomPojo(TenantDO.class, o -> o.setId(1L)); | ||||
|         tenantMapper.insert(tenant); | ||||
|  | ||||
|         // 调用,并断言业务异常 | ||||
|         List<Long> result = tenantService.getTenantIds(); | ||||
|         List<Long> result = tenantService.getTenantIdList(); | ||||
|         assertEquals(Collections.singletonList(1L), result); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV