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

Method testUrl

src/test/java/com/github/javafaker/CompanyTest.java:50–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 }
49
50 @Test
51 public void testUrl() {
52 String regexp = "(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\\-]*[A-Za-z0-9])";
53 assertThat(faker.company().url(), matchesRegularExpression(regexp));
54 }
55}

Callers

nothing calls this directly

Calls 3

urlMethod · 0.45
companyMethod · 0.45

Tested by

no test coverage detected