ex = exc;
}
assertNotNull("ValidationException must not be null", ex);
InvalidValueSerializable iv = ex.getInvalidValues().get(0);
assertNotNull("InvalidValueSerializable must not be null", iv);
assertEquals("wrong property name", "propertyName", iv.getPropertyName());
assertEquals("wrong message", "msgKey", iv.getMessage());
try {
ServerValidation.exception("msgKey", "propertyName", 5, 10, "Alice");
}catch(ValidationException exc) {
ex = exc;
}
assertNotNull("ValidationException must not be null", ex);
iv = ex.getInvalidValues().get(0);
assertNotNull("InvalidValueSerializable must not be null", iv);
assertEquals("wrong property name", "propertyName", iv.getPropertyName());
assertEquals("wrong message", "msgKey:5:10:Alice", iv.getMessage());
System.out.println("key: "+iv.getMessage());
}