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

Method testFileName

src/test/java/com/github/javafaker/FileTest.java:24–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 }
23
24 @Test
25 @Repeat(times=10)
26 public void testFileName() {
27 assertThat(faker.file().fileName(), matchesRegularExpression("([a-z\\-_]+)(\\\\|\\/)([a-z\\-_]+)\\.([a-z0-9]+)"));
28 }
29
30 @Test
31 public void testFileNameSpecifyExtension() {

Callers

nothing calls this directly

Calls 3

fileNameMethod · 0.80
fileMethod · 0.80

Tested by

no test coverage detected