diff --git a/spring-restdocs-core/src/test/java/org/springframework/restdocs/constraints/ResourceBundleConstraintDescriptionResolverTests.java b/spring-restdocs-core/src/test/java/org/springframework/restdocs/constraints/ResourceBundleConstraintDescriptionResolverTests.java index 25174d1a..dcaa522f 100644 --- a/spring-restdocs-core/src/test/java/org/springframework/restdocs/constraints/ResourceBundleConstraintDescriptionResolverTests.java +++ b/spring-restdocs-core/src/test/java/org/springframework/restdocs/constraints/ResourceBundleConstraintDescriptionResolverTests.java @@ -270,7 +270,7 @@ public class ResourceBundleConstraintDescriptionResolverTests { private Constraint getConstraintFromField(String name) { Annotation[] annotations = ReflectionUtils.findField(Constrained.class, name) .getAnnotations(); - Assert.isTrue(annotations.length == 1, "The field '" + name + "' must have" + Assert.isTrue(annotations.length == 1, "The field '" + name + "' must have " + "exactly one @Constrained annotation"); return new Constraint(annotations[0].annotationType().getName(), AnnotationUtils.getAnnotationAttributes(annotations[0]));