]> source.dussan.org Git - vaadin-framework.git/commitdiff
Update test to make UI.getApplication() return an instance (#9419)
authorLeif Åstrand <leif@vaadin.com>
Tue, 4 Sep 2012 12:49:16 +0000 (15:49 +0300)
committerLeif Åstrand <leif@vaadin.com>
Tue, 4 Sep 2012 12:49:16 +0000 (15:49 +0300)
server/tests/src/com/vaadin/tests/server/component/abstractfield/RemoveListenersOnDetach.java

index 5dbab8467ee296220b64a68c17709c91dce2556a..18567b62f062292632d5f1574f8b7740269ba8f8 100644 (file)
@@ -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;
+            }
 
         };