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:
Yavuz Tas
2019-10-29 10:01:58 +01:00
committed by GitHub
parent f2a06c7c34
commit c8d8972a56

View File

@@ -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());
}
}
}