diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-28 15:31:03 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-10-01 11:59:36 +0300 |
commit | c057cf73a79e670a4d5458b03fe49c35ecd54675 (patch) | |
tree | d5328406a147450d11b2a4ea93e9b2e966168475 /uitest | |
parent | ea179b1a676a12d153878860a74055fac5dc6922 (diff) | |
download | vaadin-framework-c057cf73a79e670a4d5458b03fe49c35ecd54675.tar.gz vaadin-framework-c057cf73a79e670a4d5458b03fe49c35ecd54675.zip |
Remove VaadinServletSession (#9638)
Change-Id: I0e25ba1a6d258b8601c009f6dc062b3f4bd3dbce
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java b/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java index 4495b343d0..fa0f13e172 100644 --- a/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java +++ b/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java @@ -1,7 +1,6 @@ package com.vaadin.tests.applicationcontext; import com.vaadin.server.VaadinService; -import com.vaadin.server.VaadinServletSession; import com.vaadin.tests.components.AbstractTestCase; import com.vaadin.tests.util.Log; import com.vaadin.ui.Button; @@ -30,15 +29,13 @@ public class ChangeSessionId extends AbstractTestCase { })); setMainWindow(mainWindow); - loginButton.addListener(new ClickListener() { + loginButton.addClickListener(new ClickListener() { @Override public void buttonClick(ClickEvent event) { - VaadinServletSession context = ((VaadinServletSession) getContext()); - - String oldSessionId = context.getHttpSession().getId(); - context.getService().reinitializeSession( - VaadinService.getCurrentRequest()); - String newSessionId = context.getHttpSession().getId(); + String oldSessionId = getSessionId(); + VaadinService.reinitializeSession(VaadinService + .getCurrentRequest()); + String newSessionId = getSessionId(); if (oldSessionId.equals(newSessionId)) { log.log("FAILED! Both old and new session id is " + newSessionId); @@ -57,7 +54,7 @@ public class ChangeSessionId extends AbstractTestCase { } protected String getSessionId() { - return ((VaadinServletSession) getContext()).getHttpSession().getId(); + return getContext().getSession().getId(); } @Override |