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

Class HarryPotter

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

Source from the content-addressed store, hash-verified

1package com.github.javafaker;
2
3public class HarryPotter {
4 private final Faker faker;
5
6 protected HarryPotter(final Faker faker) {
7 this.faker = faker;
8 }
9
10 public String character() {
11 return faker.resolve("harry_potter.characters");
12 }
13
14 public String location() {
15 return faker.resolve("harry_potter.locations");
16 }
17
18 public String quote() {
19 return faker.resolve("harry_potter.quotes");
20 }
21
22 public String book() {
23 return faker.resolve("harry_potter.books");
24 }
25
26 public String house() {
27 return faker.resolve("harry_potter.houses");
28 }
29
30 public String spell() {
31 return faker.resolve("harry_potter.spells");
32 }
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected