1.remove unused class

main
Gary 9 months ago
parent 3e016bd97f
commit 0a495a922f

@ -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;
}
}
Loading…
Cancel
Save