Skip to content

Commit 0cafea2

Browse files
Typo
1 parent bd80e03 commit 0cafea2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

validation/methods/src/test/java/org/javaee7/validation/methods/ConstructorParametersConstraintsTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ public void constructorViolationsWhenNullParameters() throws NoSuchMethodExcepti
5151
Set<ConstraintViolation<MyBean2>> constraints = methodValidator
5252
.validateConstructorParameters(constructor, new Object[] {parameter});
5353

54-
ConstraintViolation<MyBean2> violarion = constraints.iterator().next();
54+
ConstraintViolation<MyBean2> violation = constraints.iterator().next();
5555
assertThat(constraints.size(), equalTo(1));
56-
assertThat(violarion.getMessageTemplate(), equalTo("{javax.validation.constraints.NotNull.message}"));
57-
assertThat(violarion.getPropertyPath().toString(), equalTo("MyBean2.arg0.value"));
56+
assertThat(violation.getMessageTemplate(), equalTo("{javax.validation.constraints.NotNull.message}"));
57+
assertThat(violation.getPropertyPath().toString(), equalTo("MyBean2.arg0.value"));
5858
}
5959

6060
@Test

0 commit comments

Comments
 (0)