summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-28 14:58:37 +0300
committerVaadin Code Review <review@vaadin.com>2012-09-28 16:29:26 +0000
commitca59c93fb4dbc112e5deb5f5a4b10c0c730a4be4 (patch)
treeaea674d8f984b20eaf150725390f569d43f5f663 /uitest
parent9c31730847aebfe014b143b590ff6348d850a694 (diff)
downloadvaadin-framework-ca59c93fb4dbc112e5deb5f5a4b10c0c730a4be4.tar.gz
vaadin-framework-ca59c93fb4dbc112e5deb5f5a4b10c0c730a4be4.zip
Move reinitialize session to VaadinService (#9638)
This change adds reinitializeSession as a static method in VaadinService. The method is static because it affects the sessions of all VaadinService instances that are using the underlying session. Change-Id: Ia37567cb00e1f95aec344451299c99cb279a7275
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java b/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java
index 72e0a215a7..4495b343d0 100644
--- a/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java
+++ b/uitest/src/com/vaadin/tests/applicationcontext/ChangeSessionId.java
@@ -1,5 +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;
@@ -35,7 +36,8 @@ public class ChangeSessionId extends AbstractTestCase {
VaadinServletSession context = ((VaadinServletSession) getContext());
String oldSessionId = context.getHttpSession().getId();
- context.reinitializeSession();
+ context.getService().reinitializeSession(
+ VaadinService.getCurrentRequest());
String newSessionId = context.getHttpSession().getId();
if (oldSessionId.equals(newSessionId)) {
log.log("FAILED! Both old and new session id is "