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

Method testFlag

src/test/java/com/github/javafaker/CountryTest.java:12–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10public class CountryTest extends AbstractFakerTest {
11
12 @Test
13 @Repeat(times=10)
14 public void testFlag() {
15 String flag = faker.country().flag();
16 assertThat(flag, matchesRegularExpression("^http:\\/\\/flags.fmcdn\\.net\\/data\\/flags\\/w580\\/[a-zA-Z0-9_]+\\.png$"));
17 }
18
19
20 @Test

Callers

nothing calls this directly

Calls 3

flagMethod · 0.45
countryMethod · 0.45

Tested by

no test coverage detected