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

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/jakarta/servlet/http/TestHttpServletDoHeadInvalidWrite512ValidWrite1024.java
Status
scanned
Type
file
Name
TestHttpServletDoHeadInvalidWrite512ValidWrite1024.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
a00a7a816bea594eaa2d4d3fd0f1d47a
SHA1
4e0847b3093d727c5876c844882b158511249b9a
SHA256
b4cf99b3aa72bc5788f942e29852ff76abd348d5416064d3591807a5f1dc7f88
SHA512

      
    
SHA1_git
42a38a4df5e4f848b3d0c536e60c7cd6fbfabf02
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestHttpServletDoHeadInvalidWrite512ValidWrite1024.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 TestHttpServletDoHeadInvalidWrite512ValidWrite1024 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(512), rt, Integer.valueOf(1024), 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