Skip to content

Commit 80c6f2b

Browse files
committed
Polishing
1 parent 4d97a05 commit 80c6f2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-context-support/src/test/java/org/springframework/validation/beanvalidation2/SpringValidatorAdapterTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class SpringValidatorAdapterTests {
7575

7676
@Before
7777
public void setupSpringValidatorAdapter() {
78-
messageSource.addMessage("Size", Locale.ENGLISH, "Size of {0} is must be between {2} and {1}");
78+
messageSource.addMessage("Size", Locale.ENGLISH, "Size of {0} must be between {2} and {1}");
7979
messageSource.addMessage("Same", Locale.ENGLISH, "{2} must be same value as {1}");
8080
messageSource.addMessage("password", Locale.ENGLISH, "Password");
8181
messageSource.addMessage("confirmPassword", Locale.ENGLISH, "Password(Confirm)");
@@ -101,7 +101,7 @@ public void testNoStringArgumentValue() {
101101
assertThat(errors.getFieldValue("password"), is("pass"));
102102
FieldError error = errors.getFieldError("password");
103103
assertNotNull(error);
104-
assertThat(messageSource.getMessage(error, Locale.ENGLISH), is("Size of Password is must be between 8 and 128"));
104+
assertThat(messageSource.getMessage(error, Locale.ENGLISH), is("Size of Password must be between 8 and 128"));
105105
assertTrue(error.contains(ConstraintViolation.class));
106106
assertThat(error.unwrap(ConstraintViolation.class).getPropertyPath().toString(), is("password"));
107107
}

spring-context/src/test/java/org/springframework/validation/beanvalidation/SpringValidatorAdapterTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class SpringValidatorAdapterTests {
7272

7373
@Before
7474
public void setupSpringValidatorAdapter() {
75-
messageSource.addMessage("Size", Locale.ENGLISH, "Size of {0} is must be between {2} and {1}");
75+
messageSource.addMessage("Size", Locale.ENGLISH, "Size of {0} must be between {2} and {1}");
7676
messageSource.addMessage("Same", Locale.ENGLISH, "{2} must be same value as {1}");
7777
messageSource.addMessage("password", Locale.ENGLISH, "Password");
7878
messageSource.addMessage("confirmPassword", Locale.ENGLISH, "Password(Confirm)");
@@ -98,7 +98,7 @@ public void testNoStringArgumentValue() {
9898
assertThat(errors.getFieldValue("password"), is("pass"));
9999
FieldError error = errors.getFieldError("password");
100100
assertNotNull(error);
101-
assertThat(messageSource.getMessage(error, Locale.ENGLISH), is("Size of Password is must be between 8 and 128"));
101+
assertThat(messageSource.getMessage(error, Locale.ENGLISH), is("Size of Password must be between 8 and 128"));
102102
assertTrue(error.contains(ConstraintViolation.class));
103103
assertThat(error.unwrap(ConstraintViolation.class).getPropertyPath().toString(), is("password"));
104104
}

0 commit comments

Comments
 (0)