Skip to content

Commit

Permalink
Update CommerceTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJ-Ye committed May 31, 2020
1 parent f809b22 commit ac68f66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/java/com/github/javafaker/CommerceTest.java
Expand Up @@ -23,6 +23,12 @@ public void testColor() {
@Test
public void testDepartment() {
assertThat(faker.commerce().department(), matchesRegularExpression("(\\w+(, | & )?){1,3}"));
assertThat(faker.commerce().department(), matchesRegularExpression("(\\w+(, | & )?){1,3}"));
assertThat(faker.commerce().department(), matchesRegularExpression("(\\w+(, | & )?){1,3}"));
assertThat(faker.commerce().department(), matchesRegularExpression("(\\w+(, | & )?){1,3}"));
assertThat(faker.commerce().department(), matchesRegularExpression("(\\w+(, | & )?){1,3}"));
assertThat(faker.commerce().department(), matchesRegularExpression("(\\w+(, | & )?){1,3}"));
assertThat(faker.commerce().department(), matchesRegularExpression("(\\w+(, | & )?){1,3}"));
}

@Test
Expand Down

0 comments on commit ac68f66

Please sign in to comment.