ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/org/apache/jasper/runtime/TestCustomHttpJspPage.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/org/apache/jasper/runtime/TestCustomHttpJspPage.java
Status
scanned
Type
file
Name
TestCustomHttpJspPage.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2095 (2.0 KB)
MD5
15c42a7c806170f75100521267c43a73
SHA1
cf855430be24ea77fbebed246584c9319d86d26f
SHA256
cb3c210dfd9a5b96775e307e807cd0d58314dc4dea0a8b4a2ebf2902f44c6b45
SHA512

      
    
SHA1_git
d884c537b182bdab31ced89cf49aa4f3c945b4d4
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestCustomHttpJspPage.java | 2.0 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 org.apache.jasper.runtime; 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 TestCustomHttpJspPage extends TomcatBaseTest { /* * Bug 58444 */ @Test public void testCustomBasePageWhenUsingTagFiles01() throws Exception { getTomcatInstanceTestWebapp(true, true); ByteChunk out = new ByteChunk(); int rc = getUrl("http://localhost:" + getPort() + "/test/bug5nnnn/bug58444a.jsp", out, null); Assert.assertEquals(HttpServletResponse.SC_OK, rc); String result = out.toString(); Assert.assertTrue(result, result.contains("00-PASS")); } @Test public void testCustomBasePageWhenUsingTagFiles02() throws Exception { getTomcatInstanceTestWebapp(true, true); ByteChunk out = new ByteChunk(); int rc = getUrl("http://localhost:" + getPort() + "/test/bug5nnnn/bug58444b.jsp", out, null); Assert.assertEquals(HttpServletResponse.SC_OK, rc); String result = out.toString(); Assert.assertTrue(result, result.contains("00-PASS")); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
49.58
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