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

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/jakarta/servlet/http/TestHttpServletDoHeadInvalidWrite513ValidWrite1024.java
Status
scanned
Type
file
Name
TestHttpServletDoHeadInvalidWrite513ValidWrite1024.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
59b1fb0df0e11510e83ddfc596c02249
SHA1
7b1f34e64ecfb9925d472a291c0057787837c897
SHA256
4cd9c5f4e633c6eef0debf29c7543beae476b75bdeb02c063df67ea9d436a351
SHA512

      
    
SHA1_git
a364e57cb4c7dbab4296e67b3ab1204377b20ef3
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestHttpServletDoHeadInvalidWrite513ValidWrite1024.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 TestHttpServletDoHeadInvalidWrite513ValidWrite1024 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(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