From b69e6709b28f5561f0d012eb2cf3f7f4f4116d94 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Fri, 30 Aug 2013 15:33:10 +0300 Subject: [PATCH] Fix test to work after update to JUnit 4.11 With the previously used version of JUnit, the invalid test did accidentally work because a converter factory set up by some other test was accidentally available for this test as well. --- .../server/component/abstractfield/AbsFieldValueConversions.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversions.java b/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversions.java index 9854296538..a5e825bddb 100644 --- a/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversions.java +++ b/server/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversions.java @@ -249,6 +249,7 @@ public class AbsFieldValueConversions extends TestCase { @Test public void testNullConverter() { TextField tf = new TextField("foo"); + tf.setConverter(new StringToIntegerConverter()); tf.setPropertyDataSource(new ObjectProperty(12)); tf.setConverter((Converter) null); try { -- 2.39.5