From 4282d92f309b24e9bf4f3ae6f79b0013e909e8b3 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Thu, 23 Jul 2015 17:09:44 -0700 Subject: [PATCH] Simplifying from taglib testcase --- .../test/java/org/eclipse/jetty/jstl/JstlTest.java | 7 +++---- apache-jstl/src/test/taglibjar/META-INF/etag.tld | 5 ----- .../src/test/taglibjar/META-INF/tags/errorhandler.tag | 11 +++++------ .../src/test/taglibjar/META-INF/tags/errortest.tag | 3 --- apache-jstl/src/test/webapp/catch-taglib.jsp | 4 ++-- 5 files changed, 10 insertions(+), 20 deletions(-) delete mode 100644 apache-jstl/src/test/taglibjar/META-INF/tags/errortest.tag 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 6221c1d6943..1f39e8a40c8 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 @@ -127,9 +127,8 @@ public class JstlTest SimpleRequest req = new SimpleRequest(baseUri); String resp = req.getString("/catch-taglib.jsp"); System.out.println("resp = " + resp); - assertThat("Response should be JSP processed", resp, not(containsString(""))); + assertThat("Response should be JSP processed", resp, not(containsString(""))); + assertThat("Response", resp, not(containsString("[jtest:errorhandler] exception is null"))); } } diff --git a/apache-jstl/src/test/taglibjar/META-INF/etag.tld b/apache-jstl/src/test/taglibjar/META-INF/etag.tld index 61f568c41d2..de59ff05a3a 100644 --- a/apache-jstl/src/test/taglibjar/META-INF/etag.tld +++ b/apache-jstl/src/test/taglibjar/META-INF/etag.tld @@ -9,11 +9,6 @@ jtest org.eclipse.jetty.jstl.jtest - - errortest - /META-INF/tags/errortest.tag - - errorhandler /META-INF/tags/errorhandler.tag diff --git a/apache-jstl/src/test/taglibjar/META-INF/tags/errorhandler.tag b/apache-jstl/src/test/taglibjar/META-INF/tags/errorhandler.tag index 854952bc2f5..ddd44dd4910 100644 --- a/apache-jstl/src/test/taglibjar/META-INF/tags/errorhandler.tag +++ b/apache-jstl/src/test/taglibjar/META-INF/tags/errorhandler.tag @@ -1,13 +1,12 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> - + - - -[jtest:errorhandler] exception : ${error} -[jtest:errorhandler] exception.message : ${error.message} + +[jtest:errorhandler] exception : ${tossable} +[jtest:errorhandler] exception.message : ${tossable.message} - + [jtest:errorhandler] exception is null diff --git a/apache-jstl/src/test/taglibjar/META-INF/tags/errortest.tag b/apache-jstl/src/test/taglibjar/META-INF/tags/errortest.tag deleted file mode 100644 index c41a875c0ce..00000000000 --- a/apache-jstl/src/test/taglibjar/META-INF/tags/errortest.tag +++ /dev/null @@ -1,3 +0,0 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - \ No newline at end of file diff --git a/apache-jstl/src/test/webapp/catch-taglib.jsp b/apache-jstl/src/test/webapp/catch-taglib.jsp index 68c7b8f50e6..28f7488e2ab 100644 --- a/apache-jstl/src/test/webapp/catch-taglib.jsp +++ b/apache-jstl/src/test/webapp/catch-taglib.jsp @@ -4,8 +4,8 @@ <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> Title: JSTL c:catch test - + - + parsedNum = \ No newline at end of file