From: Leif Åstrand Date: Tue, 4 Sep 2012 12:49:16 +0000 (+0300) Subject: Update test to make UI.getApplication() return an instance (#9419) X-Git-Tag: 7.0.0.beta1~195^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b2e861254c0b25a98464653100e731b834a0dadd;p=vaadin-framework.git Update test to make UI.getApplication() return an instance (#9419) --- 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; + } };