You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/07/10 15:36:46 UTC

svn commit: r1501764 - /tomcat/trunk/test/org/apache/jasper/servlet/TestJspCServletContext.java

Author: markt
Date: Wed Jul 10 13:36:46 2013
New Revision: 1501764

URL: http://svn.apache.org/r1501764
Log:
There is a 2.2 webapp now as well. Based on a patch by Jermey Boynes.

Modified:
    tomcat/trunk/test/org/apache/jasper/servlet/TestJspCServletContext.java

Modified: tomcat/trunk/test/org/apache/jasper/servlet/TestJspCServletContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/jasper/servlet/TestJspCServletContext.java?rev=1501764&r1=1501763&r2=1501764&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/jasper/servlet/TestJspCServletContext.java (original)
+++ tomcat/trunk/test/org/apache/jasper/servlet/TestJspCServletContext.java Wed Jul 10 13:36:46 2013
@@ -53,6 +53,15 @@ public class TestJspCServletContext {
     }
 
     @Test
+    public void testWebapp_2_2() throws Exception {
+        File appDir = new File("test/webapp-2.2");
+        JspCServletContext context =
+                new JspCServletContext(null, appDir.toURI().toURL());
+        Assert.assertEquals(2, context.getEffectiveMajorVersion());
+        Assert.assertEquals(2, context.getEffectiveMinorVersion());
+    }
+
+    @Test
     public void testWebapp_2_3() throws Exception {
         File appDir = new File("test/webapp-2.3");
         JspCServletContext context =



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