| 6 | import org.junit.Test; |
| 7 | |
| 8 | public class DemographicTest extends AbstractFakerTest { |
| 9 | |
| 10 | @Test |
| 11 | public void race() { |
| 12 | assertThat(faker.demographic().race(), matchesRegularExpression("(\\w+ ?)+")); |
| 13 | } |
| 14 | |
| 15 | @Test |
| 16 | public void educationalAttainment() { |
| 17 | assertThat(faker.demographic().educationalAttainment(), matchesRegularExpression("(?U)([\\w'-]+ ?)+")); |
| 18 | } |
| 19 | |
| 20 | @Test |
| 21 | public void demonym() { |
| 22 | assertThat(faker.demographic().demonym(), matchesRegularExpression("(?U)([\\w'-]+ ?)+")); |
| 23 | } |
| 24 | |
| 25 | @Test |
| 26 | public void maritalStatus() { |
| 27 | assertThat(faker.demographic().maritalStatus(), matchesRegularExpression("(\\w+ ?)+")); |
| 28 | } |
| 29 | |
| 30 | @Test |
| 31 | public void sex() { |
| 32 | assertThat(faker.demographic().sex(), matchesRegularExpression("\\w+")); |
| 33 | } |
| 34 | } |
nothing calls this directly
no outgoing calls
no test coverage detected