ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/org/apache/jasper/compiler/TestSmapStratum.java

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

      
    
Rootfs path

      
    
Size
1998 (2.0 KB)
MD5
5c7c599164b7ae94ee57d14a4d730d3a
SHA1
34d5f7932cc3fc034340e9a4cea89bd8ea50667b
SHA256
b005348438b7fe6126f2d742c1a587bd5fea4f32b6d83c6013d50f6db262dde0
SHA512

      
    
SHA1_git
c9cb19b7f6beb719443115a26dac24291178c4f2
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TestSmapStratum.java | 2.0 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.jasper.compiler; import org.junit.Assert; import org.junit.Test; public class TestSmapStratum { @Test public void test01() { // Formerly part of the main() method in SmapGenerator SmapStratum s = new SmapStratum(); s.addFile("foo.jsp"); s.addFile("bar.jsp", "/foo/foo/bar.jsp"); s.addLineData(1, "foo.jsp", 1, 1, 1); s.addLineData(2, "foo.jsp", 1, 6, 1); s.addLineData(3, "foo.jsp", 2, 10, 5); s.addLineData(20, "/foo/foo/bar.jsp", 1, 30, 1); s.setOutputFileName("foo.java"); //@formatter:off Assert.assertEquals( "SMAP " + "foo.java " + "JSP " + "*S JSP " + "*F " + "+ 0 foo.jsp " + "foo.jsp " + "+ 1 bar.jsp " + "foo/foo/bar.jsp " + "*L " + "1:1 " + "2:6 " + "3,2:10,5 " + "20#1:30 " + "*E ", s.getSmapString()); //@formatter:on } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
49.58
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