🐛 idea统一生成测试代码

This commit is contained in:
你一个人在这儿干嘛你是来拉屎的吧 2023-04-02 14:21:21 +08:00 committed by Zeeland
parent a21842ac0b
commit be1de282fa
20 changed files with 539 additions and 0 deletions

View File

@ -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() {
}
}

View File

@ -0,0 +1,7 @@
package com.rymcu.forest.service;
import com.rymcu.forest.base.BaseServiceTest;
class CurrencyRuleServiceTest extends BaseServiceTest {
}

View File

@ -0,0 +1,7 @@
package com.rymcu.forest.service;
import com.rymcu.forest.base.BaseServiceTest;
class DashboardServiceTest extends BaseServiceTest {
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}

View File

@ -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() {
}
}