| 1 | package com.github.javafaker; |
| 2 | |
| 3 | public class Avatar { |
| 4 | private final Faker faker; |
| 5 | private final String baseUrl; |
| 6 | |
| 7 | protected Avatar(Faker faker) { |
| 8 | this.faker = faker; |
| 9 | this.baseUrl = "https://s3.amazonaws.com/uifaces/faces/twitter/"; |
| 10 | } |
| 11 | |
| 12 | public String image() { |
| 13 | return baseUrl + faker.fakeValuesService().resolve("internet.avatar", this, faker); |
| 14 | } |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected