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

Class EducatorTest

src/test/java/com/github/javafaker/EducatorTest.java:8–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import static org.junit.Assert.assertThat;
7
8public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected