From: Artur Signell Date: Thu, 15 Dec 2011 10:27:17 +0000 (+0200) Subject: Removed extra IntegerValidator for a field with an Integer property data X-Git-Tag: 7.0.0.alpha1~166 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a1f4db52ebeac5e7440e812fb29a63588ab2a0df;p=vaadin-framework.git Removed extra IntegerValidator for a field with an Integer property data source. Corrected assertion in the test as converter throws the exception and not an IntegerValidator anymore --- diff --git a/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.html b/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.html index 29ad93c6c6..b033a4c9e0 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.html +++ b/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.html @@ -45,12 +45,12 @@ assertText vaadin=runcomvaadintestscomponentsdatefieldCommitInvalid::PID_SLog_row_2 - 4. Commit failed : Not an integer + 4. Commit failed : Could not convert '42f' to java.lang.Integer assertText vaadin=runcomvaadintestscomponentsdatefieldCommitInvalid::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VForm[0]/domChild[0]/domChild[2]/domChild[0] - Not an integer + Could not convert '42f' to java.lang.Integer assertText diff --git a/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.java b/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.java index 36ee068af4..1395b4d735 100644 --- a/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.java +++ b/tests/testbench/com/vaadin/tests/components/datefield/CommitInvalid.java @@ -6,7 +6,6 @@ import java.util.Locale; import com.vaadin.data.Validator.InvalidValueException; import com.vaadin.data.util.ObjectProperty; -import com.vaadin.data.validator.IntegerValidator; import com.vaadin.tests.components.TestBase; import com.vaadin.tests.util.Log; import com.vaadin.ui.Button; @@ -64,7 +63,6 @@ public class CommitInvalid extends TestBase { */ integerProperty = new ObjectProperty(42); integerField = new TextField("Another Field", integerProperty); - integerField.addValidator(new IntegerValidator("Not an integer")); integerField.setDebugId("_IF"); form.addField("text", integerField);