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

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/jakarta/servlet/http/TestHttpServletDoHeadInvalidWrite511ValidWrite512.java
Status
scanned
Type
file
Name
TestHttpServletDoHeadInvalidWrite511ValidWrite512.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
9977f5c9ef1c326a24af3be868f5cfc2
SHA1
e4c76d41c563f0279c070b461befc5f302c3e0ed
SHA256
7b61047375f0df20bade4ed7e8bffbfc7b1eeba8b171917e6906816054892c1c
SHA512

      
    
SHA1_git
2c50e8587f1ed5f609f710135c05c28a980a2de7
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

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