aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/server-side/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/server-side/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java b/tests/server-side/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java
index 851fece4d1..94385700d8 100644
--- a/tests/server-side/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java
+++ b/tests/server-side/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java
@@ -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;
@@ -25,10 +26,13 @@ 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;
}
};