From b2e861254c0b25a98464653100e731b834a0dadd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Tue, 4 Sep 2012 15:49:16 +0300 Subject: [PATCH] Update test to make UI.getApplication() return an instance (#9419) --- .../component/abstractfield/RemoveListenersOnDetach.java | 9 +++++++-- 1 file 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; + } }; -- 2.39.5