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

Method testAvatar

src/test/java/com/github/javafaker/AvatarTest.java:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9public class AvatarTest extends AbstractFakerTest {
10
11 @Test
12 @Repeat(times=10)
13 public void testAvatar() {
14 String avatar = faker.avatar().image();
15 assertThat(avatar, matchesRegularExpression("^https:\\/\\/s3.amazonaws\\.com\\/uifaces\\/faces\\/twitter\\/[a-zA-Z0-9_]+\\/128\\.jpg$"));
16 }
17}

Callers

nothing calls this directly

Calls 3

imageMethod · 0.45
avatarMethod · 0.45

Tested by

no test coverage detected