Skip to content

Commit 23c1eb2

Browse files
remove regular expression
1 parent ac8203f commit 23c1eb2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
11
package com.github.javafaker;
22

33

4-
5-
64
import org.junit.Test;
75

8-
import static com.github.javafaker.matchers.MatchesRegularExpression.matchesRegularExpression;
6+
97
import static org.hamcrest.Matchers.*;
108
import static org.junit.Assert.assertThat;
119

1210
public class EnglandFootBallTest extends AbstractFakerTest{
1311

14-
private final String noLeadingTrailingWhitespaceRegex = "[A-Za-z ]+";
12+
1513

1614
@Test
1715
public void testLeague() {
1816
String league = faker.englandfootball().league();
1917
assertThat(league, not(isEmptyOrNullString()));
20-
assertThat(league, matchesRegularExpression(noLeadingTrailingWhitespaceRegex));
18+
2119
}
2220

2321
@Test
2422
public void testTeam() {
2523
String team = faker.englandfootball().team();
2624
assertThat(team, not(isEmptyOrNullString()));
27-
assertThat(team, matchesRegularExpression(noLeadingTrailingWhitespaceRegex));
25+
2826
}
2927
}

0 commit comments

Comments
 (0)