MCPcopy Create free account
hub / github.com/DiUS/java-faker / username

Method username

src/main/java/com/github/javafaker/Name.java:122–131  ·  view source on GitHub ↗

A lowercase username composed of the first_name and last_name joined with a '.'. Some examples are: (template) #firstName().#lastName() jim.jones jason.leigh tracy.jordan @return a ran

()

Source from the content-addressed store, hash-verified

120 * @see Name#lastName()
121 */
122 public String username() {
123
124 String username = StringUtils.join(
125 firstName().replaceAll("'", "").toLowerCase(),
126 ".",
127 lastName().replaceAll("'", "").toLowerCase()
128 );
129
130 return StringUtils.deleteWhitespace(username);
131 }
132
133 /**
134 * <p>Returns a blood group such as O−, O+, A-, A+, B-, B+, AB-, AB+</p>

Callers 4

testUsernameMethod · 0.80
emailAddressMethod · 0.80
safeEmailAddressMethod · 0.80

Calls 2

firstNameMethod · 0.95
lastNameMethod · 0.95

Tested by 2

testUsernameMethod · 0.64