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

Class Educator

src/main/java/com/github/javafaker/Educator.java:3–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package com.github.javafaker;
2
3public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected