From 497acc8555dd46c3ce8cf802db180f63f56bd4e4 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Sun, 27 Jan 2013 10:18:27 +1100 Subject: [PATCH] 399132 check parent dir of session store against file to be removed --- .../jetty/server/session/SessionRenewTest.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/test-sessions/test-hash-sessions/src/test/java/org/eclipse/jetty/server/session/SessionRenewTest.java b/tests/test-sessions/test-hash-sessions/src/test/java/org/eclipse/jetty/server/session/SessionRenewTest.java index 90c42c2dd4c..9d305146fcb 100644 --- a/tests/test-sessions/test-hash-sessions/src/test/java/org/eclipse/jetty/server/session/SessionRenewTest.java +++ b/tests/test-sessions/test-hash-sessions/src/test/java/org/eclipse/jetty/server/session/SessionRenewTest.java @@ -21,6 +21,7 @@ package org.eclipse.jetty.server.session; import java.io.File; import org.eclipse.jetty.server.SessionManager; +import org.junit.Assert; import org.junit.Test; public class SessionRenewTest extends AbstractSessionRenewTest @@ -40,10 +41,17 @@ public class SessionRenewTest extends AbstractSessionRenewTest File tmpDir = new File(System.getProperty("java.io.tmpdir"), "hash-session-renew-test"); tmpDir.deleteOnExit(); tmpDir.mkdirs(); - sessionManager.setStoreDirectory(tmpDir); + try + { + sessionManager.setStoreDirectory(tmpDir); + } + catch (Exception e) + { + throw new IllegalStateException(e); + } return sessionManager; } - + }; }