Skip to content
Snippets Groups Projects
Commit 8ebbf011 authored by felmer's avatar felmer
Browse files

LMS-401 bug in test code fixed: Session timeout handling

SVN: 5911
parent adb6ae47
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,7 @@ public class DatasetDownloadServletTest ...@@ -120,6 +120,7 @@ public class DatasetDownloadServletTest
one(request).getSession(true); one(request).getSession(true);
will(returnValue(httpSession)); will(returnValue(httpSession));
one(httpSession).setMaxInactiveInterval(120);
one(httpSession).setAttribute(DatasetDownloadServlet.DATA_SET_KEY, externalData); one(httpSession).setAttribute(DatasetDownloadServlet.DATA_SET_KEY, externalData);
one(httpSession).setAttribute(DatasetDownloadServlet.DATA_SET_ROOT_DIR_KEY, EXAMPLE_DATA_SET_FOLDER); one(httpSession).setAttribute(DatasetDownloadServlet.DATA_SET_ROOT_DIR_KEY, EXAMPLE_DATA_SET_FOLDER);
...@@ -161,6 +162,7 @@ public class DatasetDownloadServletTest ...@@ -161,6 +162,7 @@ public class DatasetDownloadServletTest
properties.setProperty(ConfigParameters.SERVER_URL_KEY, "http://localhost"); properties.setProperty(ConfigParameters.SERVER_URL_KEY, "http://localhost");
properties.setProperty(ConfigParameters.USERNAME_KEY, "demo"); properties.setProperty(ConfigParameters.USERNAME_KEY, "demo");
properties.setProperty(ConfigParameters.PASSWORD_KEY, "pwd"); properties.setProperty(ConfigParameters.PASSWORD_KEY, "pwd");
properties.setProperty(ConfigParameters.SESSION_TIMEOUT_KEY, "2");
ConfigParameters configParameters = new ConfigParameters(properties); ConfigParameters configParameters = new ConfigParameters(properties);
return new DatasetDownloadServlet(new ApplicationContext(dataSetService, configParameters)); return new DatasetDownloadServlet(new ApplicationContext(dataSetService, configParameters));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment