Add missing space to assertion failure message in the tests

Closes gh-397
This commit is contained in:
Johnny Lim
2017-05-23 09:17:33 +09:00
committed by Andy Wilkinson
parent fbd13e30b0
commit 9a22ec0442

View File

@@ -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]));