| 1 | package com.github.javafaker; |
| 2 | |
| 3 | public class Educator { |
| 4 | private final Faker faker; |
| 5 | |
| 6 | protected Educator(Faker faker) { |
| 7 | this.faker = faker; |
| 8 | } |
| 9 | |
| 10 | // TODO - move these all out to en.yml by default. |
| 11 | public String university() { |
| 12 | return faker.fakeValuesService().resolve("educator.name", this, faker) |
| 13 | + " " |
| 14 | + faker.fakeValuesService().resolve("educator.tertiary.type", this, faker); |
| 15 | } |
| 16 | |
| 17 | public String course() { |
| 18 | return faker.fakeValuesService().resolve("educator.tertiary.degree.type", this, faker) |
| 19 | + " " |
| 20 | + faker.fakeValuesService().resolve("educator.tertiary.degree.subject", this, faker); |
| 21 | } |
| 22 | |
| 23 | public String secondarySchool() { |
| 24 | return faker.fakeValuesService().resolve("educator.name", this, faker) |
| 25 | + " " |
| 26 | + faker.fakeValuesService().resolve("educator.secondary", this, faker); |
| 27 | } |
| 28 | |
| 29 | public String campus() { |
| 30 | return faker.fakeValuesService().resolve("educator.name", this, faker) + " Campus"; |
| 31 | } |
| 32 | |
| 33 | } |
nothing calls this directly
no outgoing calls
no test coverage detected