aboutsummaryrefslogtreecommitdiffstats
path: root/server/tests
diff options
context:
space:
mode:
authorJonatan Kronqvist <jonatan@vaadin.com>2014-02-07 14:46:31 +0200
committerJonatan Kronqvist <jonatan@vaadin.com>2014-02-07 14:46:31 +0200
commit4a027d600fb2c1f0cfa1e4d6660e6a5645912c70 (patch)
tree9ccf14b094ef0a3b25bf065a6f9d70ac6ca238cb /server/tests
parent1ca6d0e39bbe2223404df0c275e80c7afa4fd136 (diff)
parentd45785d6763f269b4e00460ace07ab47c712b5ca (diff)
downloadvaadin-framework-4a027d600fb2c1f0cfa1e4d6660e6a5645912c70.tar.gz
vaadin-framework-4a027d600fb2c1f0cfa1e4d6660e6a5645912c70.zip
Merge changes from origin/7.1
74dcb6f Correct assertion message which changed due to #12915 12b6a8b Test for broken Webkit feature which causes extra scrollbars (#12736, #12727) ea46029 Allow excluding test from the standard test suite c171850 Disable client timeout so websockets are not disconnected when idle (#13015) 36fce65 Test for pushing for an extended period of time (24h) 54a5667 Fix compilation error 25fc48c Do not throw NPE if conversion messages is null (#12962) 26b5b67 Timeout redirect timer is reset on server activity (#12446) d45785d Fixes right click selection focus issues in Tree. (#12618) Change-Id: I3cef915ee46b77ca0f188296cfa343cde1ad59e6
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversionError.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversionError.java b/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversionError.java
index ad762f8931..887f1b8ff3 100644
--- a/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversionError.java
+++ b/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversionError.java
@@ -54,6 +54,21 @@ public class AbsFieldValueConversionError extends TestCase {
}
+ public void testNullConversionMessages() {
+ TextField tf = new TextField();
+ tf.setConverter(new StringToIntegerConverter());
+ tf.setPropertyDataSource(new MethodProperty<String>(paulaBean, "age"));
+ tf.setConversionError(null);
+ tf.setValue("abc");
+ try {
+ tf.validate();
+ fail();
+ } catch (InvalidValueException e) {
+ Assert.assertEquals(null, e.getMessage());
+ }
+
+ }
+
public void testDefaultConversionErrorMessage() {
TextField tf = new TextField();
tf.setConverter(new StringToIntegerConverter());