Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2016-01-28 15:42:18 -0500
committerJoakim Erdfelt2016-01-28 15:42:18 -0500
commit14ec878d420986c7411a9ebef316a3aaa08546f1 (patch)
treee779dfb5ff11bce7d5e7ecabae0c262588251ba1
parent83bc83a99d35193745b606497124915255b95fac (diff)
downloadorg.eclipse.jetty.project-14ec878d420986c7411a9ebef316a3aaa08546f1.tar.gz
org.eclipse.jetty.project-14ec878d420986c7411a9ebef316a3aaa08546f1.tar.xz
org.eclipse.jetty.project-14ec878d420986c7411a9ebef316a3aaa08546f1.zip
486530 - Handler added to WebAppContext prevents ServletContext initialization
+ Adding (commented out) testcase to JstlTest to demonstrate behavior
-rw-r--r--apache-jstl/src/test/java/org/eclipse/jetty/jstl/JstlTest.java15
-rw-r--r--apache-jstl/src/test/resources/jetty-logging.properties3
2 files changed, 16 insertions, 2 deletions
diff --git a/apache-jstl/src/test/java/org/eclipse/jetty/jstl/JstlTest.java b/apache-jstl/src/test/java/org/eclipse/jetty/jstl/JstlTest.java
index f1c4dd32fd..5642ef44ae 100644
--- a/apache-jstl/src/test/java/org/eclipse/jetty/jstl/JstlTest.java
+++ b/apache-jstl/src/test/java/org/eclipse/jetty/jstl/JstlTest.java
@@ -18,8 +18,9 @@
package org.eclipse.jetty.jstl;
-import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.*;
+import static org.hamcrest.Matchers.containsString;
+import static org.hamcrest.Matchers.not;
+import static org.junit.Assert.assertThat;
import java.io.File;
import java.io.IOException;
@@ -75,6 +76,16 @@ public class JstlTest
WebAppContext context = new WebAppContext();
context.setContextPath("/");
+ /* TODO: Bug #486530 - sub-handler on WebAppContext prevents startup
+ context.setHandler(new AbstractHandler()
+ {
+ public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
+ throws IOException, ServletException
+ {
+ }
+ });
+ */
+
File scratchDir = MavenTestingUtils.getTargetFile("tests/" + JstlTest.class.getSimpleName() + "-scratch");
FS.ensureEmpty(scratchDir);
JspConfig.init(context,testWebAppDir.toURI(),scratchDir);
diff --git a/apache-jstl/src/test/resources/jetty-logging.properties b/apache-jstl/src/test/resources/jetty-logging.properties
new file mode 100644
index 0000000000..08befa5ce9
--- /dev/null
+++ b/apache-jstl/src/test/resources/jetty-logging.properties
@@ -0,0 +1,3 @@
+org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog
+# org.eclipse.jetty.LEVEL=INFO
+# org.eclipse.jetty.util.LEVEL=DEBUG

Back to the top