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

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

      
    
Rootfs path

      
    
Size
4229 (4.1 KB)
MD5
07ddd01ab7622bb8a9a43f9b5dea7d63
SHA1
a9faa671d3b424cce7f387321a406eda8ea72328
SHA256
07bdc44bec332dd5a20aed66dd6b97b9de67c53c152a98db79357983eacbae9a
SHA512

      
    
SHA1_git
0c6326ba8a127c429306a7391b8e61ed99ce849c
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestHostConfigAutomaticDeploymentXmlExternalWarXml.java | 4.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 org.apache.catalina.startup; import java.io.File; import org.junit.Test; import org.apache.catalina.LifecycleState; /** * The purpose of this class is to test the automatic deployment features of the * {@link HostConfig} implementation. */ public class TestHostConfigAutomaticDeploymentXmlExternalWarXml extends HostConfigAutomaticDeploymentBaseTest { /* * Expected behaviour for deployment of an XML file that points to an * external WAR. * deployXML copyXML unpackWARs XML WAR DIR * Y/N Y/N Y Y N Y * Y/N Y/N N Y N N * * Notes: No WAR file is present in the appBase because it is an external * WAR. * Any context.xml file embedded in the external WAR file is ignored. */ @Test public void testDeploymentXmlExternalWarXmlFFF() throws Exception { File war = createWar(WAR_XML_SOURCE, false); createXmlInConfigBaseForExternal(war); doTestDeployment(false, false, false, LifecycleState.STARTED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlExternalWarXmlFFT() throws Exception { File war = createWar(WAR_XML_SOURCE, false); createXmlInConfigBaseForExternal(war); doTestDeployment(false, false, true, LifecycleState.STARTED, XML_COOKIE_NAME, true, false, true); } @Test public void testDeploymentXmlExternalWarXmlFTF() throws Exception { File war = createWar(WAR_XML_SOURCE, false); createXmlInConfigBaseForExternal(war); doTestDeployment(false, true, false, LifecycleState.STARTED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlExternalWarXmlFTT() throws Exception { File war = createWar(WAR_XML_SOURCE, false); createXmlInConfigBaseForExternal(war); doTestDeployment(false, true, true, LifecycleState.STARTED, XML_COOKIE_NAME, true, false, true); } @Test public void testDeploymentXmlExternalWarXmlTFF() throws Exception { File war = createWar(WAR_XML_SOURCE, false); createXmlInConfigBaseForExternal(war); doTestDeployment(true, false, false, LifecycleState.STARTED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlExternalWarXmlTFT() throws Exception { File war = createWar(WAR_XML_SOURCE, false); createXmlInConfigBaseForExternal(war); doTestDeployment(true, false, true, LifecycleState.STARTED, XML_COOKIE_NAME, true, false, true); } @Test public void testDeploymentXmlExternalWarXmlTTF() throws Exception { File war = createWar(WAR_XML_SOURCE, false); createXmlInConfigBaseForExternal(war); doTestDeployment(true, true, false, LifecycleState.STARTED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlExternalWarXmlTTT() throws Exception { File war = createWar(WAR_XML_SOURCE, false); createXmlInConfigBaseForExternal(war); doTestDeployment(true, true, true, LifecycleState.STARTED, XML_COOKIE_NAME, true, false, true); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
27.29
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