File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/test/java/com/github/javafaker Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11package com .github .javafaker ;
22
33
4-
5-
64import org .junit .Test ;
75
8- import static com . github . javafaker . matchers . MatchesRegularExpression . matchesRegularExpression ;
6+
97import static org .hamcrest .Matchers .*;
108import static org .junit .Assert .assertThat ;
119
1210public 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}
You can’t perform that action at this time.
0 commit comments