ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/org/apache/catalina/startup/TestHostConfigAutomaticDeploymentUnpackWAR.java

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

      
    
Rootfs path

      
    
Size
2339 (2.3 KB)
MD5
2fd151f7d0612166a7dfd53203142741
SHA1
75f834b1270eaf259bedb4ae7fe8a8e101278a28
SHA256
83d8167c89114d59ca0f06dd0ea905de844fd70aebb2ed4132cdde3fdaa54e23
SHA512

      
    
SHA1_git
098148a6b817e94331404d12196f3807f3d8ea8d
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestHostConfigAutomaticDeploymentUnpackWAR.java | 2.3 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 org.apache.catalina.startup; import org.junit.Test; /** * The purpose of this class is to test the automatic deployment features of the * {@link HostConfig} implementation. */ public class TestHostConfigAutomaticDeploymentUnpackWAR extends HostConfigAutomaticDeploymentBaseTest { /* * Test context unpackWAR setting. * If context.getUnpackWAR != Host.getUnpackWARs the Host wins. */ @Test public void testUnpackWARFFF() throws Exception { doTestUnpackWAR(false, false, false, false); } @Test public void testUnpackWARFFT() throws Exception { doTestUnpackWAR(false, false, true, false); } @Test public void testUnpackWARFTF() throws Exception { doTestUnpackWAR(false, true, false, false); } @Test public void testUnpackWARFTT() throws Exception { doTestUnpackWAR(false, true, true, false); } @Test public void testUnpackWARTFF() throws Exception { doTestUnpackWAR(true, false, false, false); } @Test public void testUnpackWARTFT() throws Exception { // External WAR - therefore XML in WAR will be ignored doTestUnpackWAR(true, false, true, true); } @Test public void testUnpackWARTTF() throws Exception { doTestUnpackWAR(true, true, false, true); } @Test public void testUnpackWARTTT() throws Exception { doTestUnpackWAR(true, true, true, true); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
46.3
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