ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/jakarta/servlet/http/TestHttpServletDoHeadInvalidWrite1024ValidWrite513.java

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

      
    
Rootfs path

      
    
Size
2180 (2.1 KB)
MD5
07d19efcf04eeda835de770f309c468f
SHA1
ac164fa849b0a580d0a6308044f2079a7ccbcc2e
SHA256
6ca2a1b12d0b901ddc3bc4f8d619f42339b68043afb6af5ab25e47221b4036b0
SHA512

      
    
SHA1_git
5035a86bd597f1e7769d6cdd6495f1f63908f748
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestHttpServletDoHeadInvalidWrite1024ValidWrite513.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.http; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; /* * Split into multiple tests as a single test takes so long it impacts the time * of an entire test run. */ @RunWith(Parameterized.class) public class TestHttpServletDoHeadInvalidWrite1024ValidWrite513 extends HttpServletDoHeadBaseTest { @Parameterized.Parameters(name = "{index}: {0} {1} {2} {3} {4} {5} {6} {7} {8}") public static Collection<Object[]> parameters() { Collection<Object[]> baseData = data(); List<Object[]> parameterSets = new ArrayList<>(); for (Object[] base : baseData) { for (Boolean l : booleans) { for (Integer buf : BUFFERS) { for (Boolean w : booleans) { for (ResetType rt : ResetType.values()) { for (Boolean f : booleans) { parameterSets.add(new Object[] { base[0], base[1], l, buf, w, Integer.valueOf(1024), rt, Integer.valueOf(513), f }); } } } } } } return parameterSets; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
48.97
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