ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/org/apache/tomcat/buildutil/translate/TestUtils.java

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

      
    
Rootfs path

      
    
Size
2178 (2.1 KB)
MD5
4dc55c9e402fbe25a70f31bf7b218c18
SHA1
b5d0793f95016b0482a0ddff6b9d8bc2dd71f79b
SHA256
ef264c329fbdd1713c147b4f788e94dd915fc92b67aefcadcea2e64eefe6b30a
SHA512

      
    
SHA1_git
2a3ac32ffb5580254d0d8ca073c2ed9943a48461
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestUtils.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 org.apache.tomcat.buildutil.translate; import org.junit.Assert; import org.junit.Test; public class TestUtils { @Test public void testFormatValue01() { // Import from POE Assert.assertEquals("line1\ \\ line2\ \\ line3", Utils.formatValueImport("line1 line2 line3")); } @Test public void testFormatValue02() { // Import from POE Assert.assertEquals("\ \\ line2\ \\ line3", Utils.formatValueImport(Utils.PADDING + " line2 line3")); } @Test public void testFormatValue03() { // Import from POE Assert.assertEquals("line1\ \\ \ line2\ \\ \ line3", Utils.formatValueImport("line1 line2 line3")); } @Test public void testFormatValue04() { // Export from Tomcat Assert.assertEquals("line1\ \\ line2\ \\ line3", Utils.formatValueExport("line1 line2 line3")); } @Test public void testFormatValue05() { // Export from Tomcat Assert.assertEquals(Utils.PADDING + "\ \\ line2\ \\ line3", Utils.formatValueExport(" line2 line3")); } @Test public void testFormatValue06() { // Export from Tomcat Assert.assertEquals("line1\ \\ \ line2\ \\ \ line3", Utils.formatValueExport("line1 line2 line3")); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
50.64
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