diff --git a/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/DatasetDownloadServletTest.java b/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/DatasetDownloadServletTest.java index 4d9eebae6c623bae8127262aded2eb154b955845..00f37dff50011b371db6443942398975e56a93c2 100644 --- a/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/DatasetDownloadServletTest.java +++ b/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/DatasetDownloadServletTest.java @@ -182,6 +182,15 @@ public class DatasetDownloadServletTest EXAMPLE_DATA_SET_FOLDER.mkdirs(); FileUtilities.writeToFile(EXAMPLE_FILE, EXAMPLE_FILE_CONTENT); EXAMPLE_DATA_SET_SUB_FOLDER.mkdir(); + context.checking(new Expectations() + { + { + allowing(httpSession).setAttribute(with("openbis-session-id"), with(any(Object.class))); + allowing(httpSession).getAttribute(with("openbis-session-id")); + will(returnValue(EXAMPLE_SESSION_ID)); + } + }); + } @AfterMethod