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/05/10 14:05:46 UTC

svn commit: r1480987 - /tomcat/trunk/test/org/apache/jasper/compiler/TestJspConfig.java

Author: markt
Date: Fri May 10 12:05:45 2013
New Revision: 1480987

URL: http://svn.apache.org/r1480987
Log:
Fix broken test after re-org
Add test for servlet 3.1

Modified:
    tomcat/trunk/test/org/apache/jasper/compiler/TestJspConfig.java

Modified: tomcat/trunk/test/org/apache/jasper/compiler/TestJspConfig.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/jasper/compiler/TestJspConfig.java?rev=1480987&r1=1480986&r2=1480987&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/jasper/compiler/TestJspConfig.java (original)
+++ tomcat/trunk/test/org/apache/jasper/compiler/TestJspConfig.java Fri May 10 12:05:45 2013
@@ -93,7 +93,7 @@ public class TestJspConfig extends Tomca
         Tomcat tomcat = getTomcatInstance();
 
         File appDir =
-            new File("test/webapp");
+            new File("test/webapp-3.0");
         // app dir is relative to server home
         tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
 
@@ -107,4 +107,22 @@ public class TestJspConfig extends Tomca
         assertTrue(result.indexOf("<p>00-hello world</p>") > 0);
     }
 
+    @Test
+    public void testServlet31NoEL() throws Exception {
+        Tomcat tomcat = getTomcatInstance();
+
+        File appDir =
+            new File("test/webapp-3.1");
+        // app dir is relative to server home
+        tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+
+        tomcat.start();
+
+        ByteChunk res = getUrl("http://localhost:" + getPort() +
+                "/test/el-as-literal.jsp");
+
+        String result = res.toString();
+
+        assertTrue(result.indexOf("<p>00-hello world</p>") > 0);
+    }
 }



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