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

Method url

src/main/java/com/github/javafaker/Company.java:71–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 public String url() {
72 return join(
73 "www",
74 ".",
75 FakerIDN.toASCII(domainName()),
76 ".",
77 domainSuffix()
78 );
79 }
80
81 private String domainName(){
82 return StringUtils.deleteWhitespace(name().toLowerCase().replaceAll(",", "").replaceAll("'", ""));

Callers 3

testUrlMethod · 0.45
testFarsiIDNsMethod · 0.45
testUrlMethod · 0.45

Calls 3

toASCIIMethod · 0.95
domainNameMethod · 0.95
domainSuffixMethod · 0.95

Tested by 3

testUrlMethod · 0.36
testFarsiIDNsMethod · 0.36
testUrlMethod · 0.36