]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added missing parts which made test fail
authorArtur Signell <artur@vaadin.com>
Thu, 21 Jun 2012 13:01:44 +0000 (16:01 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 21 Jun 2012 14:11:38 +0000 (17:11 +0300)
tests/server-side/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java

index 851fece4d1925ccb57b66c324fd15089fb4a5cb4..94385700d8db0b2fd2b5b67da746e6a60dfaf1fe 100644 (file)
@@ -4,6 +4,7 @@ import static org.junit.Assert.assertEquals;
 
 import org.junit.Test;
 
+import com.vaadin.Application;
 import com.vaadin.data.Property;
 import com.vaadin.data.util.AbstractProperty;
 import com.vaadin.data.util.converter.Converter.ConversionException;
@@ -24,11 +25,14 @@ public class RemoveListenersOnDetach {
 
             }
 
+        };
+        private Application application = new Application() {
+
         };
 
         @Override
         public Class<?> getType() {
-            return null;
+            return String.class;
         }
 
         @Override
@@ -48,6 +52,11 @@ public class RemoveListenersOnDetach {
         public com.vaadin.ui.Root getRoot() {
             return root;
         };
+
+        @Override
+        public Application getApplication() {
+            return application;
+        };
     };
 
     Property property = new AbstractProperty() {
@@ -61,7 +70,7 @@ public class RemoveListenersOnDetach {
         }
 
         public Class<?> getType() {
-            return null;
+            return String.class;
         }
     };