]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix test to work after update to JUnit 4.11
authorLeif Åstrand <leif@vaadin.com>
Fri, 30 Aug 2013 12:33:10 +0000 (15:33 +0300)
committerLeif Åstrand <leif@vaadin.com>
Fri, 30 Aug 2013 12:33:10 +0000 (15:33 +0300)
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/tests/src/com/vaadin/tests/server/component/abstractfield/AbsFieldValueConversions.java

index 985429653856db4c084bdc37ea27f079230ee2fe..a5e825bddb9bb34fcce76fc9f5a8a247eca1718e 100644 (file)
@@ -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<Integer>(12));
         tf.setConverter((Converter) null);
         try {