diff options
author | Jarno Rantala <jarno.rantala@vaadin.com> | 2013-06-26 14:56:54 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-07-30 07:45:02 +0000 |
commit | 47f4c612a935ae2d5b9a6ee8626faa41a6451153 (patch) | |
tree | 1829a45a25299810acc67799965bc3dcc448f78d /uitest | |
parent | 41a5d7d952b2ff5c61a1c2a44e8cf116359f0eae (diff) | |
download | vaadin-framework-47f4c612a935ae2d5b9a6ee8626faa41a6451153.tar.gz vaadin-framework-47f4c612a935ae2d5b9a6ee8626faa41a6451153.zip |
BeanValidator changed to throw exception with array of causes (#11324)
BeanValidator was modified to throw InvalidValueException with array of causes
instead of exception with one message including HTML. This way
AbstractErrorMessage is able to create correct error notification message with
multiple lines.
Change-Id: I414189f56ac282daad9dd3fe58d13fd99108c479
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/fieldgroup/FieldBinderWithBeanValidation.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/fieldgroup/FieldBinderWithBeanValidation.java b/uitest/src/com/vaadin/tests/fieldgroup/FieldBinderWithBeanValidation.java index 4f83f5d0fd..2c202af02b 100644 --- a/uitest/src/com/vaadin/tests/fieldgroup/FieldBinderWithBeanValidation.java +++ b/uitest/src/com/vaadin/tests/fieldgroup/FieldBinderWithBeanValidation.java @@ -7,7 +7,6 @@ import com.vaadin.data.util.BeanItem; import com.vaadin.tests.components.TestBase; import com.vaadin.tests.data.bean.Address; import com.vaadin.tests.data.bean.Country; -import com.vaadin.tests.data.bean.Person; import com.vaadin.tests.data.bean.PersonWithBeanValidationAnnotations; import com.vaadin.tests.data.bean.Sex; import com.vaadin.tests.util.Log; @@ -90,8 +89,10 @@ public class FieldBinderWithBeanValidation extends TestBase { p)); } - public static Person getPerson(FieldGroup binder) { - return ((BeanItem<Person>) binder.getItemDataSource()).getBean(); + public static PersonWithBeanValidationAnnotations getPerson( + FieldGroup binder) { + return ((BeanItem<PersonWithBeanValidationAnnotations>) binder + .getItemDataSource()).getBean(); } @Override |