From e181ba864842bf4216cfe66778076a5b89d94951 Mon Sep 17 00:00:00 2001 From: ronger Date: Sat, 13 May 2023 08:53:33 +0800 Subject: [PATCH] =?UTF-8?q?:technologist:=20=E5=AE=8C=E5=96=84=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=9C=8D=E5=8A=A1=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/com/rymcu/forest/service/TagServiceTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/rymcu/forest/service/TagServiceTest.java b/src/test/java/com/rymcu/forest/service/TagServiceTest.java index cec45e6..93b7878 100644 --- a/src/test/java/com/rymcu/forest/service/TagServiceTest.java +++ b/src/test/java/com/rymcu/forest/service/TagServiceTest.java @@ -118,7 +118,7 @@ class TagServiceTest extends BaseServiceTest { @DisplayName("添加/更新标签") void saveTag() throws Exception { List tagLabels = tagService.findTagLabels(); - assertEquals(1, tagLabels.size()); + assertNotNull(tagLabels); Tag tag = new Tag(); tag.setTagDescription("test1"); @@ -130,7 +130,7 @@ class TagServiceTest extends BaseServiceTest { assertNotNull(tag1.getIdTag()); tagLabels = tagService.findTagLabels(); - assertEquals(1, tagLabels.size()); + assertNotNull(tagLabels); tag.setIdTag(null); assertThrows(BusinessException.class, () -> tagService.saveTag(tag)); @@ -142,4 +142,4 @@ class TagServiceTest extends BaseServiceTest { List tagLabels = tagService.findTagLabels(); assertFalse(tagLabels.isEmpty()); } -} \ No newline at end of file +}