diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-04 15:49:16 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-09-04 15:49:16 +0300 |
commit | b2e861254c0b25a98464653100e731b834a0dadd (patch) | |
tree | 5b017dc408c5c4a3458e6bca8dbfd4011dd2e2aa | |
parent | e810fed27a55b9ea888b29658e52329a06698322 (diff) | |
download | vaadin-framework-b2e861254c0b25a98464653100e731b834a0dadd.tar.gz vaadin-framework-b2e861254c0b25a98464653100e731b834a0dadd.zip |
Update test to make UI.getApplication() return an instance (#9419)
-rw-r--r-- | server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java b/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java index 5dbab8467e..18567b62f0 100644 --- a/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java +++ b/server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java @@ -18,6 +18,9 @@ public class RemoveListenersOnDetach { int numReadOnlyChanges = 0; AbstractField field = new AbstractField() { + final private Application application = new Application() { + + }; private UI uI = new UI() { @Override @@ -25,8 +28,10 @@ public class RemoveListenersOnDetach { } - }; - private Application application = new Application() { + @Override + public Application getApplication() { + return application; + } }; |