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

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

      
    
Rootfs path

      
    
Size
2420 (2.4 KB)
MD5
65f3f4b178c16f644b635e0f2b4de3f5
SHA1
0e88882d9b702260b8d21f37e4f625aa9c542205
SHA256
94ea11d3f636bc99e0e363424ad4692d8548db277d05c61b00d8b92c6cc53e97
SHA512

      
    
SHA1_git
4cf09e757c0e16374f60340ef57c74d52c5e9a02
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestHostConfigAutomaticDeploymentDeleteA.java | 2.4 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 TestHostConfigAutomaticDeploymentDeleteA extends HostConfigAutomaticDeploymentBaseTest { /* * Expected behaviour for the deletion of files. * * Artifacts present Artifact Artifacts remaining * XML WAR EXT DIR Removed XML WAR EXT DIR Notes * N N N Y DIR - - - N * N Y N N WAR - N - - * N Y N Y DIR - Y - R 1 * N Y N Y WAR - N - N * * Notes: 1. The DIR will be re-created since unpackWARs is true. */ @Test public void testDeleteDirRemoveDir() throws Exception { doTestDelete(false, false, false, false, true, DIR, false, false, false, null); } @Test public void testDeleteWarRemoveWar() throws Exception { doTestDelete(false, false, false, true, false, WAR, false, false, false, null); } @Test public void testDeleteWarDirRemoveDir() throws Exception { doTestDelete(false, false, false, true, true, DIR, false, true, true, WAR_COOKIE_NAME); } @Test public void testDeleteWarDirRemoveWar() throws Exception { doTestDelete(false, false, false, true, true, WAR, false, false, false, null); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
42.65
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