File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/test/java/ru/mystamps/web Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ public static String lang() {
72
72
return sample ("en" , "de" , "fr" , "ru" );
73
73
}
74
74
75
+ public static String name () {
76
+ final long enoughLongLength = 15 ;
77
+ return between (1 , enoughLongLength ).english ();
78
+ }
79
+
75
80
public static String categoryName () {
76
81
return between (
77
82
ValidationRules .CATEGORY_NAME_MIN_LENGTH ,
Original file line number Diff line number Diff line change @@ -109,9 +109,7 @@ public void parseShouldRequireNonBlankPageContent() {
109
109
@ SuppressWarnings ("checkstyle:magicnumber" )
110
110
@ Test
111
111
public void toStringShouldReturnName () {
112
- // @todo #685 SiteParserTest:
113
- // introduce a method for generating random string of arbitrary length
114
- String expectedName = nullOr (between (1 , 15 ).unicode ());
112
+ String expectedName = nullOr (Random .name ());
115
113
parser .setName (expectedName );
116
114
117
115
assertThat (parser .toString (), equalTo (expectedName ));
You can’t perform that action at this time.
0 commit comments