From 0a495a922fc056f00399fcef4e34c46004b9d00c Mon Sep 17 00:00:00 2001 From: Gary Date: Thu, 7 Mar 2024 00:23:33 +0800 Subject: [PATCH] 1.remove unused class --- .../luoo/user/service/UserServiceTest.java | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 luoo_user/src/test/java/com/luoo/user/service/UserServiceTest.java diff --git a/luoo_user/src/test/java/com/luoo/user/service/UserServiceTest.java b/luoo_user/src/test/java/com/luoo/user/service/UserServiceTest.java deleted file mode 100644 index f19d8fb..0000000 --- a/luoo_user/src/test/java/com/luoo/user/service/UserServiceTest.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.luoo.user.service; - -import static org.junit.Assert.*; - -import org.junit.Test; - -import com.apifan.common.random.RandomSource; - -public class UserServiceTest { - - @Test - public void testRandomNickName() { - for(int i=0;i<100;i++) { - String nickName=getRandomNickName(); - assertTrue(nickName.length()<=3); - } - - } - - private String getRandomNickName() { - String rawNickName=RandomSource.personInfoSource().randomChineseNickName(3); - if(rawNickName.length()>3) { - return rawNickName.substring(0, 3); - } - return rawNickName; - } - -}