@@ -203,7 +203,7 @@ public void validate_shouldFailValidationIfPersonNamePrefixIsTooLong() throws Ex
203
203
@ Verifies (value = "should pass validation if PersonName.prefix is exactly max length" , method = "validate(java.lang.Object, org.springframework.validation.Errors, boolean, boolean)" )
204
204
public void validate_shouldPassValidationIfPersonNamePrefixIsExactlyMaxLength () throws Exception {
205
205
PersonName personName = new PersonName ();
206
- personName .setPrefix ("1234567890123456789012345678901234567890123456789 " ); // exactly 50 characters long
206
+ personName .setPrefix ("12345678901234567890123456789012345678901234567890 " ); // exactly 50 characters long
207
207
Errors errors = new BindException (personName , "prefix" );
208
208
new PersonNameValidator ().validatePersonName (personName , errors , false , true );
209
209
Assert .assertFalse (errors .hasFieldErrors ("prefix" ));
@@ -243,7 +243,7 @@ public void validate_shouldFailValidationIfPersonNameGivenNameIsTooLong() throws
243
243
@ Verifies (value = "should pass validation if PersonName.givenName is exactly max length" , method = "validate(java.lang.Object, org.springframework.validation.Errors, boolean, boolean)" )
244
244
public void validate_shouldPassValidationIfPersonNameGivenNameIsExactlyMaxLength () throws Exception {
245
245
PersonName personName = new PersonName ();
246
- personName .setGivenName ("abcdefghijabcdefghijabcdefghijabcdefghijabcdefghi " ); // exactly 50 characters long
246
+ personName .setGivenName ("abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij " ); // exactly 50 characters long
247
247
Errors errors = new BindException (personName , "givenName" );
248
248
new PersonNameValidator ().validatePersonName (personName , errors , false , true );
249
249
Assert .assertFalse (errors .hasFieldErrors ("givenName" ));
@@ -283,7 +283,7 @@ public void validate_shouldFailValidationIfPersonNameMiddleNameIsTooLong() throw
283
283
@ Verifies (value = "should pass validation if PersonName.middleName is exactly max length" , method = "validate(java.lang.Object, org.springframework.validation.Errors, boolean, boolean)" )
284
284
public void validate_shouldPassValidationIfPersonNameMiddleNameIsExactlyMaxLength () throws Exception {
285
285
PersonName personName = new PersonName ();
286
- personName .setMiddleName ("abcdefghijabcdefghijabcdefghijabcdefghijabcdefghi " ); // exactly 50 characters long
286
+ personName .setMiddleName ("abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij " ); // exactly 50 characters long
287
287
Errors errors = new BindException (personName , "middleName" );
288
288
new PersonNameValidator ().validatePersonName (personName , errors , false , true );
289
289
Assert .assertFalse (errors .hasFieldErrors ("middleName" ));
@@ -323,7 +323,7 @@ public void validate_shouldFailValidationIfPersonNameFamilyNamePrefixIsTooLong()
323
323
@ Verifies (value = "should pass validation if PersonName.familyNamePrefix is exactly max length" , method = "validate(java.lang.Object, org.springframework.validation.Errors, boolean, boolean)" )
324
324
public void validate_shouldPassValidationIfPersonNameFamilyNamePrefixIsExactlyMaxLength () throws Exception {
325
325
PersonName personName = new PersonName ();
326
- personName .setFamilyNamePrefix ("1234567890123456789012345678901234567890123456789 " ); // exactly 50 characters long
326
+ personName .setFamilyNamePrefix ("12345678901234567890123456789012345678901234567890 " ); // exactly 50 characters long
327
327
Errors errors = new BindException (personName , "familyNamePrefix" );
328
328
new PersonNameValidator ().validatePersonName (personName , errors , false , true );
329
329
Assert .assertFalse (errors .hasFieldErrors ("familyNamePrefix" ));
@@ -363,7 +363,7 @@ public void validate_shouldFailValidationIfPersonNameFamilyNameIsTooLong() throw
363
363
@ Verifies (value = "should pass validation if PersonName.familyName is exactly max length" , method = "validate(java.lang.Object, org.springframework.validation.Errors, boolean, boolean)" )
364
364
public void validate_shouldPassValidationIfPersonNameFamilyNameIsExactlyMaxLength () throws Exception {
365
365
PersonName personName = new PersonName ();
366
- personName .setFamilyName ("abcdefghijabcdefghijabcdefghijabcdefghijabcdefghi " ); // exactly 50 characters long
366
+ personName .setFamilyName ("abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij " ); // exactly 50 characters long
367
367
Errors errors = new BindException (personName , "familyName" );
368
368
new PersonNameValidator ().validatePersonName (personName , errors , false , true );
369
369
Assert .assertFalse (errors .hasFieldErrors ("familyName" ));
@@ -403,7 +403,7 @@ public void validate_shouldFailValidationIfPersonNameFamilyName2IsTooLong() thro
403
403
@ Verifies (value = "should pass validation if PersonName.familyName2 is exactly max length" , method = "validate(java.lang.Object, org.springframework.validation.Errors, boolean, boolean)" )
404
404
public void validate_shouldPassValidationIfPersonNameFamilyName2IsExactlyMaxLength () throws Exception {
405
405
PersonName personName = new PersonName ();
406
- personName .setFamilyName2 ("abcdefghijabcdefghijabcdefghijabcdefghijabcdefghi " ); // exactly 50 characters long
406
+ personName .setFamilyName2 ("abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij " ); // exactly 50 characters long
407
407
Errors errors = new BindException (personName , "familyName2" );
408
408
new PersonNameValidator ().validatePersonName (personName , errors , false , true );
409
409
Assert .assertFalse (errors .hasFieldErrors ("familyName2" ));
@@ -443,7 +443,7 @@ public void validate_shouldFailValidationIfPersonNameFamilyNameSuffixIsTooLong()
443
443
@ Verifies (value = "should pass validation if PersonName.familyNameSuffix is exactly max length" , method = "validate(java.lang.Object, org.springframework.validation.Errors, boolean, boolean)" )
444
444
public void validate_shouldPassValidationIfPersonNameFamilyNameSuffixIsExactlyMaxLength () throws Exception {
445
445
PersonName personName = new PersonName ();
446
- personName .setFamilyNameSuffix ("1234567890123456789012345678901234567890123456789 " ); // exactly 50 characters long
446
+ personName .setFamilyNameSuffix ("12345678901234567890123456789012345678901234567890 " ); // exactly 50 characters long
447
447
Errors errors = new BindException (personName , "familyNameSuffix" );
448
448
new PersonNameValidator ().validatePersonName (personName , errors , false , true );
449
449
Assert .assertFalse (errors .hasFieldErrors ("familyNameSuffix" ));
@@ -483,7 +483,7 @@ public void validate_shouldFailValidationIfPersonNameDegreeIsTooLong() throws Ex
483
483
@ Verifies (value = "should pass validation if PersonName.degree is exactly max length" , method = "validate(java.lang.Object, org.springframework.validation.Errors, boolean, boolean)" )
484
484
public void validate_shouldPassValidationIfPersonNameDegreeIsExactlyMaxLength () throws Exception {
485
485
PersonName personName = new PersonName ();
486
- personName .setDegree ("1234567890123456789012345678901234567890123456789 " ); // exactly 50 characters long
486
+ personName .setDegree ("12345678901234567890123456789012345678901234567890 " ); // exactly 50 characters long
487
487
Errors errors = new BindException (personName , "degree" );
488
488
new PersonNameValidator ().validatePersonName (personName , errors , false , true );
489
489
Assert .assertFalse (errors .hasFieldErrors ("degree" ));
0 commit comments