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

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

      
    
Rootfs path

      
    
Size
3412 (3.3 KB)
MD5
607e2c758a2dfae04f741aa57603fc96
SHA1
a9dce56b07815619f6355f51281457e1f13bd3f6
SHA256
f0ea513fa5270d03a8a61edce61b7f9354cab4c13214bd4b3c9f992c30b9f9e3
SHA512

      
    
SHA1_git
c165a30c75ca6da03aecd519ec41145fd754e79f
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestHostConfigAutomaticDeploymentXml.java | 3.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; import org.apache.catalina.LifecycleState; /** * The purpose of this class is to test the automatic deployment features of the * {@link HostConfig} implementation. */ public class TestHostConfigAutomaticDeploymentXml extends HostConfigAutomaticDeploymentBaseTest { /* * Expected behaviour for deployment of an XML file. * deployXML copyXML unpackWARs XML WAR DIR * Y/N Y/N Y/N Y N N * * Note: Context will fail to start because no valid docBase is present. */ @Test public void testDeploymentXmlFFF() throws Exception { createXmlInConfigBaseForAppbase(); doTestDeployment(false, false, false, LifecycleState.FAILED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlFFT() throws Exception { createXmlInConfigBaseForAppbase(); doTestDeployment(false, false, true, LifecycleState.FAILED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlFTF() throws Exception { createXmlInConfigBaseForAppbase(); doTestDeployment(false, true, false, LifecycleState.FAILED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlFTT() throws Exception { createXmlInConfigBaseForAppbase(); doTestDeployment(false, true, true, LifecycleState.FAILED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlTFF() throws Exception { createXmlInConfigBaseForAppbase(); doTestDeployment(true, false, false, LifecycleState.FAILED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlTFT() throws Exception { createXmlInConfigBaseForAppbase(); doTestDeployment(true, false, true, LifecycleState.FAILED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlTTF() throws Exception { createXmlInConfigBaseForAppbase(); doTestDeployment(true, true, false, LifecycleState.FAILED, XML_COOKIE_NAME, true, false, false); } @Test public void testDeploymentXmlTTT() throws Exception { createXmlInConfigBaseForAppbase(); doTestDeployment(true, true, true, LifecycleState.FAILED, XML_COOKIE_NAME, true, false, false); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
35.0
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