| 6 | import static org.junit.Assert.assertThat; |
| 7 | |
| 8 | public class FoodTest extends AbstractFakerTest { |
| 9 | |
| 10 | @Test |
| 11 | public void ingredient() { |
| 12 | assertThat(faker.food().ingredient(), matchesRegularExpression("[A-Za-z- ]+")); |
| 13 | } |
| 14 | |
| 15 | @Test |
| 16 | public void spice() { |
| 17 | assertThat(faker.food().spice(), matchesRegularExpression("[A-Za-z1-9- ]+")); |
| 18 | } |
| 19 | |
| 20 | @Test |
| 21 | public void dish() { |
| 22 | assertThat(faker.food().dish(), matchesRegularExpression("\\P{Cc}+")); |
| 23 | } |
| 24 | |
| 25 | @Test |
| 26 | public void fruit() { |
| 27 | assertThat(faker.food().fruit(), matchesRegularExpression("[A-Za-z1-9- ]+")); |
| 28 | } |
| 29 | |
| 30 | @Test |
| 31 | public void vegetable() { |
| 32 | assertThat(faker.food().vegetable(), matchesRegularExpression("[A-Za-z1-9- ]+")); |
| 33 | } |
| 34 | |
| 35 | @Test |
| 36 | public void sushi() { |
| 37 | assertThat(faker.food().sushi(), matchesRegularExpression("[A-Za-z1-9- ]+")); |
| 38 | } |
| 39 | |
| 40 | @Test |
| 41 | public void measurement() { |
| 42 | assertThat(faker.food().measurement(), matchesRegularExpression("[A-Za-z1-9/ ]+{2}")); |
| 43 | } |
| 44 | } |
nothing calls this directly
no outgoing calls
no test coverage detected