diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-08-30 16:24:12 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-08-31 18:59:59 +0300 |
commit | cf9ab5aea84d2be1686c5f46edd9522cd0750baf (patch) | |
tree | bbd281a1d5d18e1b3846501a75836a92a4b17e8c /uitest/src/com/vaadin/tests/application | |
parent | e5d1c888b9c220fc256dc45e2ff35d2056de4ddc (diff) | |
download | vaadin-framework-cf9ab5aea84d2be1686c5f46edd9522cd0750baf.tar.gz vaadin-framework-cf9ab5aea84d2be1686c5f46edd9522cd0750baf.zip |
Remove user handling in Application (#9402)
Diffstat (limited to 'uitest/src/com/vaadin/tests/application')
-rw-r--r-- | uitest/src/com/vaadin/tests/application/ErrorInUnloadEvent.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/uitest/src/com/vaadin/tests/application/ErrorInUnloadEvent.java b/uitest/src/com/vaadin/tests/application/ErrorInUnloadEvent.java index d7e9155ded..1278032f3c 100644 --- a/uitest/src/com/vaadin/tests/application/ErrorInUnloadEvent.java +++ b/uitest/src/com/vaadin/tests/application/ErrorInUnloadEvent.java @@ -10,17 +10,18 @@ import com.vaadin.ui.FormLayout; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Label; import com.vaadin.ui.PasswordField; -import com.vaadin.ui.UI.LegacyWindow; import com.vaadin.ui.TextField; +import com.vaadin.ui.UI.LegacyWindow; import com.vaadin.ui.VerticalLayout; public class ErrorInUnloadEvent extends AbstractTestCase { private LegacyWindow mainWindow; + private Object user = null; @Override public void init() { - if (getUser() == null) { + if (user == null) { showLoginWindow(); } else { showMainWindow(); @@ -55,7 +56,7 @@ public class ErrorInUnloadEvent extends AbstractTestCase { String username = userField.getValue(); String password = passwordField.getValue(); - setUser(username); + user = username; showMainWindow(); } }); @@ -84,7 +85,7 @@ public class ErrorInUnloadEvent extends AbstractTestCase { logout.addListener(new ClickListener() { @Override public void buttonClick(final ClickEvent event) { - setUser(null); + user = null; showLoginWindow(); } |