From be1de282fabdff333ca9ed7b050cc7be774e4ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=A0=E4=B8=80=E4=B8=AA=E4=BA=BA=E5=9C=A8=E8=BF=99?= =?UTF-8?q?=E5=84=BF=E5=B9=B2=E5=98=9B=E4=BD=A0=E6=98=AF=E6=9D=A5=E6=8B=89?= =?UTF-8?q?=E5=B1=8E=E7=9A=84=E5=90=A7?= <1421374934@qq.com> Date: Sun, 2 Apr 2023 14:21:21 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20idea=E7=BB=9F=E4=B8=80=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../forest/service/CommentServiceTest.java | 29 ++++++ .../service/CurrencyRuleServiceTest.java | 7 ++ .../forest/service/DashboardServiceTest.java | 7 ++ .../forest/service/FollowServiceTest.java | 31 ++++++ .../forest/service/ForestFileServiceTest.java | 20 ++++ .../forest/service/JavaMailServiceTest.java | 19 ++++ .../service/LoginRecordServiceTest.java | 20 ++++ .../service/NotificationServiceTest.java | 40 ++++++++ .../forest/service/OpenDataServiceTest.java | 20 ++++ .../forest/service/PermissionServiceTest.java | 16 ++++ .../forest/service/PortfolioServiceTest.java | 48 ++++++++++ .../forest/service/ProductServiceTest.java | 20 ++++ .../rymcu/forest/service/RoleServiceTest.java | 28 ++++++ .../forest/service/SpecialDayServiceTest.java | 11 +++ .../forest/service/SponsorServiceTest.java | 16 ++++ .../rymcu/forest/service/TagServiceTest.java | 28 ++++++ .../forest/service/TopicServiceTest.java | 40 ++++++++ .../service/TransactionRecordServiceTest.java | 32 +++++++ .../rymcu/forest/service/UserServiceTest.java | 96 +++++++++++++++++++ .../forest/service/VisitServiceTest.java | 11 +++ 20 files changed, 539 insertions(+) create mode 100644 src/test/java/com/rymcu/forest/service/CommentServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/CurrencyRuleServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/DashboardServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/FollowServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/ForestFileServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/JavaMailServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/LoginRecordServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/NotificationServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/OpenDataServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/PermissionServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/PortfolioServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/ProductServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/RoleServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/SpecialDayServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/SponsorServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/TagServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/TopicServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/TransactionRecordServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/UserServiceTest.java create mode 100644 src/test/java/com/rymcu/forest/service/VisitServiceTest.java diff --git a/src/test/java/com/rymcu/forest/service/CommentServiceTest.java b/src/test/java/com/rymcu/forest/service/CommentServiceTest.java new file mode 100644 index 0000000..5913835 --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/CommentServiceTest.java @@ -0,0 +1,29 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class CommentServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @AfterEach + void tearDown() { + } + + @Test + void getArticleComments() { + } + + @Test + void postComment() { + } + + @Test + void findComments() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/CurrencyRuleServiceTest.java b/src/test/java/com/rymcu/forest/service/CurrencyRuleServiceTest.java new file mode 100644 index 0000000..24c97da --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/CurrencyRuleServiceTest.java @@ -0,0 +1,7 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; + +class CurrencyRuleServiceTest extends BaseServiceTest { + +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/DashboardServiceTest.java b/src/test/java/com/rymcu/forest/service/DashboardServiceTest.java new file mode 100644 index 0000000..816b248 --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/DashboardServiceTest.java @@ -0,0 +1,7 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; + +class DashboardServiceTest extends BaseServiceTest { + +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/FollowServiceTest.java b/src/test/java/com/rymcu/forest/service/FollowServiceTest.java new file mode 100644 index 0000000..72ff368 --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/FollowServiceTest.java @@ -0,0 +1,31 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.Test; + +class FollowServiceTest extends BaseServiceTest { + + @Test + void isFollow() { + } + + @Test + void follow() { + } + + @Test + void cancelFollow() { + } + + @Test + void findByFollowingId() { + } + + @Test + void findUserFollowersByUser() { + } + + @Test + void findUserFollowingsByUser() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/ForestFileServiceTest.java b/src/test/java/com/rymcu/forest/service/ForestFileServiceTest.java new file mode 100644 index 0000000..1e6296d --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/ForestFileServiceTest.java @@ -0,0 +1,20 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class ForestFileServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void getFileUrlByMd5() { + } + + @Test + void insertForestFile() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/JavaMailServiceTest.java b/src/test/java/com/rymcu/forest/service/JavaMailServiceTest.java new file mode 100644 index 0000000..b0040e3 --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/JavaMailServiceTest.java @@ -0,0 +1,19 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.Test; + +class JavaMailServiceTest extends BaseServiceTest { + + @Test + void sendEmailCode() { + } + + @Test + void sendForgetPasswordEmail() { + } + + @Test + void sendNotification() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/LoginRecordServiceTest.java b/src/test/java/com/rymcu/forest/service/LoginRecordServiceTest.java new file mode 100644 index 0000000..ddf25ed --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/LoginRecordServiceTest.java @@ -0,0 +1,20 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class LoginRecordServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void saveLoginRecord() { + } + + @Test + void findLoginRecordByIdUser() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/NotificationServiceTest.java b/src/test/java/com/rymcu/forest/service/NotificationServiceTest.java new file mode 100644 index 0000000..821a9c9 --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/NotificationServiceTest.java @@ -0,0 +1,40 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class NotificationServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void findUnreadNotifications() { + } + + @Test + void findNotifications() { + } + + @Test + void findNotification() { + } + + @Test + void save() { + } + + @Test + void readNotification() { + } + + @Test + void readAllNotification() { + } + + @Test + void deleteUnreadNotification() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/OpenDataServiceTest.java b/src/test/java/com/rymcu/forest/service/OpenDataServiceTest.java new file mode 100644 index 0000000..d04795a --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/OpenDataServiceTest.java @@ -0,0 +1,20 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class OpenDataServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void lastThirtyDaysData() { + } + + @Test + void dashboard() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/PermissionServiceTest.java b/src/test/java/com/rymcu/forest/service/PermissionServiceTest.java new file mode 100644 index 0000000..690f98c --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/PermissionServiceTest.java @@ -0,0 +1,16 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class PermissionServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void selectPermissionByUser() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/PortfolioServiceTest.java b/src/test/java/com/rymcu/forest/service/PortfolioServiceTest.java new file mode 100644 index 0000000..fe53d82 --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/PortfolioServiceTest.java @@ -0,0 +1,48 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class PortfolioServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void findUserPortfoliosByUser() { + } + + @Test + void findPortfolioDTOById() { + } + + @Test + void postPortfolio() { + } + + @Test + void findUnbindArticles() { + } + + @Test + void bindArticle() { + } + + @Test + void updateArticleSortNo() { + } + + @Test + void unbindArticle() { + } + + @Test + void deletePortfolio() { + } + + @Test + void findPortfolios() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/ProductServiceTest.java b/src/test/java/com/rymcu/forest/service/ProductServiceTest.java new file mode 100644 index 0000000..ff96b0c --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/ProductServiceTest.java @@ -0,0 +1,20 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class ProductServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void findProducts() { + } + + @Test + void findProductDTOById() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/RoleServiceTest.java b/src/test/java/com/rymcu/forest/service/RoleServiceTest.java new file mode 100644 index 0000000..23d37e9 --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/RoleServiceTest.java @@ -0,0 +1,28 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class RoleServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void selectRoleByUser() { + } + + @Test + void findByIdUser() { + } + + @Test + void updateStatus() { + } + + @Test + void saveRole() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/SpecialDayServiceTest.java b/src/test/java/com/rymcu/forest/service/SpecialDayServiceTest.java new file mode 100644 index 0000000..d2afb4b --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/SpecialDayServiceTest.java @@ -0,0 +1,11 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; + +class SpecialDayServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/SponsorServiceTest.java b/src/test/java/com/rymcu/forest/service/SponsorServiceTest.java new file mode 100644 index 0000000..eee611d --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/SponsorServiceTest.java @@ -0,0 +1,16 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class SponsorServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void sponsorship() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/TagServiceTest.java b/src/test/java/com/rymcu/forest/service/TagServiceTest.java new file mode 100644 index 0000000..e30c63e --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/TagServiceTest.java @@ -0,0 +1,28 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class TagServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void saveTagArticle() { + } + + @Test + void cleanUnusedTag() { + } + + @Test + void saveTag() { + } + + @Test + void findTagLabels() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/TopicServiceTest.java b/src/test/java/com/rymcu/forest/service/TopicServiceTest.java new file mode 100644 index 0000000..8d6a55e --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/TopicServiceTest.java @@ -0,0 +1,40 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class TopicServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void findTopicNav() { + } + + @Test + void findTopicByTopicUri() { + } + + @Test + void saveTopic() { + } + + @Test + void findUnbindTagsById() { + } + + @Test + void bindTopicTag() { + } + + @Test + void unbindTopicTag() { + } + + @Test + void findTagsByTopicUri() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/TransactionRecordServiceTest.java b/src/test/java/com/rymcu/forest/service/TransactionRecordServiceTest.java new file mode 100644 index 0000000..97500b5 --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/TransactionRecordServiceTest.java @@ -0,0 +1,32 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class TransactionRecordServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void transfer() { + } + + @Test + void findTransactionRecords() { + } + + @Test + void userTransfer() { + } + + @Test + void bankTransfer() { + } + + @Test + void newbieRewards() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/UserServiceTest.java b/src/test/java/com/rymcu/forest/service/UserServiceTest.java new file mode 100644 index 0000000..815ac54 --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/UserServiceTest.java @@ -0,0 +1,96 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +class UserServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } + + @Test + void findByAccount() { + } + + @Test + void register() { + } + + @Test + void login() { + } + + @Test + void findUserDTOByAccount() { + } + + @Test + void forgetPassword() { + } + + @Test + void updateUserRole() { + } + + @Test + void updateStatus() { + } + + @Test + void findUserInfo() { + } + + @Test + void updateUserInfo() { + } + + @Test + void checkNicknameByIdUser() { + } + + @Test + void findRoleWeightsByUser() { + } + + @Test + void selectAuthor() { + } + + @Test + void updateUserExtend() { + } + + @Test + void selectUserExtendByAccount() { + } + + @Test + void updateEmail() { + } + + @Test + void updatePassword() { + } + + @Test + void findUsers() { + } + + @Test + void updateLastOnlineTimeByAccount() { + } + + @Test + void findUserExtendInfo() { + } + + @Test + void refreshToken() { + } + + @Test + void findUserPermissions() { + } +} \ No newline at end of file diff --git a/src/test/java/com/rymcu/forest/service/VisitServiceTest.java b/src/test/java/com/rymcu/forest/service/VisitServiceTest.java new file mode 100644 index 0000000..35b3acc --- /dev/null +++ b/src/test/java/com/rymcu/forest/service/VisitServiceTest.java @@ -0,0 +1,11 @@ +package com.rymcu.forest.service; + +import com.rymcu.forest.base.BaseServiceTest; +import org.junit.jupiter.api.BeforeEach; + +class VisitServiceTest extends BaseServiceTest { + + @BeforeEach + void setUp() { + } +} \ No newline at end of file