ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/jakarta/servlet/jsp/el/TestImportELResolver.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/jakarta/servlet/jsp/el/TestImportELResolver.java
Status
scanned
Type
file
Name
TestImportELResolver.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2164 (2.1 KB)
MD5
bb5c9e227174c134970c19c3e85a45b0
SHA1
31b852870b0aca3336be3e865e7e4b88adecda86
SHA256
f66f55612ccbbf83ba3f7e56169a9acae7dc58100be796f8cd84f91fde7c55b1
SHA512

      
    
SHA1_git
9a9b3dcc3a19fed97e262b4359bfaf2beb784f4a
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestImportELResolver.java | 2.1 KB |

/* * 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 jakarta.servlet.jsp.el; import jakarta.servlet.http.HttpServletResponse; import org.junit.Assert; import org.junit.Test; import org.apache.catalina.startup.TomcatBaseTest; import org.apache.tomcat.util.buf.ByteChunk; public class TestImportELResolver extends TomcatBaseTest { // https://bz.apache.org/bugzilla/show_bug.cgi?id=66441 @Test public void testImportStaticFields() throws Exception { getTomcatInstanceTestWebapp(false, true); ByteChunk res = getUrl("http://localhost:" + getPort() + "/test/bug6nnnn/bug66441.jsp"); String result = res.toString(); Assert.assertTrue(result.contains("EL - Long min value is -9223372036854775808")); Assert.assertTrue(result.contains("JSP - Long min value is -9223372036854775808")); } // https://bz.apache.org/bugzilla/show_bug.cgi?id=66582 @Test public void testImportStaticFieldFromInterface() throws Exception { getTomcatInstanceTestWebapp(false, true); ByteChunk res = new ByteChunk(); int rc = getUrl("http://localhost:" + getPort() + "/test/bug6nnnn/bug66582.jsp", res, null); Assert.assertEquals(HttpServletResponse.SC_OK, rc); String result = res.toString(); Assert.assertFalse(result, result.contains("data")); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
46.12
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9
https://bz.apache.org/bugzilla/show_bug.cgi?id=66441 29 29
https://bz.apache.org/bugzilla/show_bug.cgi?id=66582 43 43