File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/test/java/org/ays/common/util Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 4
4
import lombok .experimental .UtilityClass ;
5
5
6
6
import java .util .Random ;
7
+ import java .util .UUID ;
7
8
8
9
@ UtilityClass
9
10
public class AysRandomUtil {
@@ -22,8 +23,9 @@ public static String generateLastName() {
22
23
public String generateEmailAddress () {
23
24
final String firstName = FAKER .name ().firstName ().toLowerCase ().replaceAll ("[^a-z]" , "" );
24
25
final String lastName = FAKER .name ().lastName ().toLowerCase ().replaceAll ("[^a-z]" , "" );
26
+ final String uuid = UUID .randomUUID ().toString ().replaceAll ("[^a-zA-Z0-9]" , "" ).substring (0 , 10 ).toLowerCase ();
25
27
final String prefix = "test" ;
26
- return ( prefix + firstName + "." + lastName + "@afetyonetimsistemi.test" ) ;
28
+ return prefix + firstName + "." + lastName + "_" + uuid + " @afetyonetimsistemi.test" ;
27
29
}
28
30
29
31
public static String generatePassword () {
You can’t perform that action at this time.
0 commit comments