Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2015-07-02 02:57:44 -0400
committerGreg Wilkins2015-07-02 02:57:56 -0400
commit04062a838305af6f2d3eb12e6b09bb6c2780cd5a (patch)
tree0aad0323b6cf3aa854fe65e3d0c6d4c5f65910fc /jetty-security
parent2d0bedd9bf5f037402243715f84267c8c82da1e1 (diff)
downloadorg.eclipse.jetty.project-04062a838305af6f2d3eb12e6b09bb6c2780cd5a.tar.gz
org.eclipse.jetty.project-04062a838305af6f2d3eb12e6b09bb6c2780cd5a.tar.xz
org.eclipse.jetty.project-04062a838305af6f2d3eb12e6b09bb6c2780cd5a.zip
Improved graceful shutdown and added tests
Diffstat (limited to 'jetty-security')
-rw-r--r--jetty-security/src/test/java/org/eclipse/jetty/security/AliasedConstraintTest.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/jetty-security/src/test/java/org/eclipse/jetty/security/AliasedConstraintTest.java b/jetty-security/src/test/java/org/eclipse/jetty/security/AliasedConstraintTest.java
index 52487e87a5..7da1a9b889 100644
--- a/jetty-security/src/test/java/org/eclipse/jetty/security/AliasedConstraintTest.java
+++ b/jetty-security/src/test/java/org/eclipse/jetty/security/AliasedConstraintTest.java
@@ -31,9 +31,12 @@ import java.util.Set;
import org.eclipse.jetty.http.HttpStatus;
import org.eclipse.jetty.server.Connector;
+import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.LocalConnector;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.ContextHandler;
+import org.eclipse.jetty.server.handler.DefaultHandler;
+import org.eclipse.jetty.server.handler.HandlerList;
import org.eclipse.jetty.server.handler.ResourceHandler;
import org.eclipse.jetty.server.session.SessionHandler;
import org.eclipse.jetty.toolchain.test.MavenTestingUtils;
@@ -79,7 +82,10 @@ public class AliasedConstraintTest
context.setContextPath("/ctx");
context.setResourceBase(MavenTestingUtils.getTestResourceDir("docroot").getAbsolutePath());
- server.setHandler(context);
+
+ HandlerList handlers = new HandlerList();
+ handlers.setHandlers(new Handler[]{context,new DefaultHandler()});
+ server.setHandler(handlers);
context.setHandler(session);
// context.addAliasCheck(new AllowSymLinkAliasChecker());

Back to the top