Update javaxval/src/test/java/org/baeldung/javaxval/messageinterpolator/ParameterMessageInterpolaterIntegrationTest.java
update to use the givenX_whenY_thenZ naming convention for tests Co-Authored-By: KevinGilmore <kpg102@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ public class ParameterMessageInterpolaterIntegrationTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void ifNameLengthIsLess_nameValidationFails() {
|
||||
public void givenNameLengthLessThanMin_whenValidate_thenValidationFails() {
|
||||
Person person = new Person();
|
||||
person.setName("John Doe");
|
||||
person.setAge(18);
|
||||
@@ -67,4 +67,4 @@ public class ParameterMessageInterpolaterIntegrationTest {
|
||||
assertEquals("Email address should be in a correct format: ${validatedValue}", violation.getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user