| 6 | import static org.junit.Assert.assertThat; |
| 7 | |
| 8 | public class EducatorTest extends AbstractFakerTest { |
| 9 | |
| 10 | @Test |
| 11 | public void testUniversity() { |
| 12 | assertThat(faker.educator().university(), matchesRegularExpression("(\\w+ ?){2,3}")); |
| 13 | } |
| 14 | |
| 15 | @Test |
| 16 | public void testCourse() { |
| 17 | assertThat(faker.educator().course(), matchesRegularExpression("(\\(?\\w+\\)? ?){3,6}")); |
| 18 | } |
| 19 | |
| 20 | @Test |
| 21 | public void testSecondarySchool() { |
| 22 | assertThat(faker.educator().secondarySchool(), matchesRegularExpression("(\\w+ ?){2,3}")); |
| 23 | } |
| 24 | |
| 25 | @Test |
| 26 | public void testCampus() { |
| 27 | assertThat(faker.educator().campus(), matchesRegularExpression("(\\w+ ?){1,2}")); |
| 28 | } |
| 29 | } |
nothing calls this directly
no outgoing calls
no test coverage detected