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

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

      
    
Rootfs path

      
    
Size
2178 (2.1 KB)
MD5
a7ff90cbca4158602d388a8f1b448292
SHA1
4b3d5770ac871e358e5e20b9c194fbf39c38b89c
SHA256
4f250d8c7ac3f40a6c25c1256b1a71778af899b63e64bc70be8a1910f259e9bb
SHA512

      
    
SHA1_git
4b8f3c1b848e4e2965c5c177face683c04f13a46
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestHttpServletDoHeadInvalidWrite513ValidWrite511.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 TestHttpServletDoHeadInvalidWrite513ValidWrite511 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(513), rt, Integer.valueOf(511), 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