tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r905133 - in /tomcat/trunk/test: org/apache/jasper/compiler/TestScriptingVariabler.java webapp/WEB-INF/tags/bug42390.tag webapp/bug42390.jsp
Date Sun, 31 Jan 2010 22:49:35 GMT
Author: markt
Date: Sun Jan 31 22:49:34 2010
New Revision: 905133

URL: http://svn.apache.org/viewvc?rev=905133&view=rev
Log:
Add test case for https://issues.apache.org/bugzilla/show_bug.cgi?id=42390
JSP & tag file provided by MicroNova YUZU Team

Added:
    tomcat/trunk/test/org/apache/jasper/compiler/TestScriptingVariabler.java   (with props)
    tomcat/trunk/test/webapp/WEB-INF/tags/bug42390.tag   (with props)
    tomcat/trunk/test/webapp/bug42390.jsp   (with props)

Added: tomcat/trunk/test/org/apache/jasper/compiler/TestScriptingVariabler.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/jasper/compiler/TestScriptingVariabler.java?rev=905133&view=auto
==============================================================================
--- tomcat/trunk/test/org/apache/jasper/compiler/TestScriptingVariabler.java (added)
+++ tomcat/trunk/test/org/apache/jasper/compiler/TestScriptingVariabler.java Sun Jan 31 22:49:34
2010
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jasper.compiler;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.apache.catalina.startup.Tomcat;
+import org.apache.catalina.startup.TomcatBaseTest;
+
+public class TestScriptingVariabler extends TomcatBaseTest {
+    
+    public void testBug42390() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir = 
+            new File("test/webapp");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+        
+        tomcat.start();
+
+        Exception e = null;
+        try {
+            getUrl("http://localhost:" + getPort() + "/test/bug42390.jsp");
+        } catch (IOException ioe) {
+            e = ioe;
+        }
+
+        // Should not fail
+        assertNull(e);
+    }
+}

Propchange: tomcat/trunk/test/org/apache/jasper/compiler/TestScriptingVariabler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/org/apache/jasper/compiler/TestScriptingVariabler.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/WEB-INF/tags/bug42390.tag
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/WEB-INF/tags/bug42390.tag?rev=905133&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/WEB-INF/tags/bug42390.tag (added)
+++ tomcat/trunk/test/webapp/WEB-INF/tags/bug42390.tag Sun Jan 31 22:49:34 2010
@@ -0,0 +1,18 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ variable name-given="X" scope="AT_BEGIN" %>
+<jsp:doBody/>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/WEB-INF/tags/bug42390.tag
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision

Added: tomcat/trunk/test/webapp/bug42390.jsp
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug42390.jsp?rev=905133&view=auto
==============================================================================
--- tomcat/trunk/test/webapp/bug42390.jsp (added)
+++ tomcat/trunk/test/webapp/bug42390.jsp Sun Jan 31 22:49:34 2010
@@ -0,0 +1,18 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<tags:bug42390><tags:bug42390/></tags:bug42390>
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/bug42390.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tomcat/trunk/test/webapp/bug42390.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message