| 1 | package com.github.javafaker; |
| 2 | |
| 3 | public class Food { |
| 4 | |
| 5 | private final Faker faker; |
| 6 | |
| 7 | protected Food(Faker faker) { |
| 8 | this.faker = faker; |
| 9 | } |
| 10 | |
| 11 | public String ingredient() { |
| 12 | return faker.fakeValuesService().resolve("food.ingredients", this, faker); |
| 13 | } |
| 14 | |
| 15 | public String spice() { |
| 16 | return faker.fakeValuesService().resolve("food.spices", this, faker); |
| 17 | } |
| 18 | |
| 19 | public String dish() { |
| 20 | return faker.fakeValuesService().resolve("food.dish", this, faker); |
| 21 | } |
| 22 | |
| 23 | public String fruit() { |
| 24 | return faker.fakeValuesService().resolve("food.fruits", this, faker); |
| 25 | } |
| 26 | |
| 27 | public String vegetable() { |
| 28 | return faker.fakeValuesService().resolve("food.vegetables", this, faker); |
| 29 | } |
| 30 | |
| 31 | public String sushi() { |
| 32 | return faker.fakeValuesService().resolve("food.sushi", this, faker); |
| 33 | } |
| 34 | |
| 35 | public String measurement() { |
| 36 | return faker.fakeValuesService().resolve("food.measurement_sizes", this, faker) + |
| 37 | " " + faker.fakeValuesService().resolve("food.measurements", this, faker); |
| 38 | } |
| 39 | } |
nothing calls this directly
no outgoing calls
no test coverage detected