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

Class AvatarTest

src/test/java/com/github/javafaker/AvatarTest.java:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import static org.junit.Assert.assertThat;
8
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

no outgoing calls

Tested by

no test coverage detected