View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one   *
3    * or more contributor license agreements.  See the NOTICE file *
4    * distributed with this work for additional information        *
5    * regarding copyright ownership.  The ASF licenses this file   *
6    * to you under the Apache License, Version 2.0 (the            *
7    * "License"); you may not use this file except in compliance   *
8    * with the License.  You may obtain a copy of the License at   *
9    *                                                              *
10   *   http://www.apache.org/licenses/LICENSE-2.0                 *
11   *                                                              *
12   * Unless required by applicable law or agreed to in writing,   *
13   * software distributed under the License is distributed on an  *
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
15   * KIND, either express or implied.  See the License for the    *
16   * specific language governing permissions and limitations      *
17   * under the License.                                           *
18   */
19  package org.apache.rat.analysis.license;
20  
21  import java.util.stream.Stream;
22  
23  import org.junit.jupiter.params.provider.Arguments;
24  
25  public class GeneratedLicenseTest extends AbstractLicenseTest {
26      private static String id = "GEN";
27      private static String name = "Generated Files";
28      private static String notes = "Files that are autmoatically generated.";
29      private static String[][] targets = { { "Cayenne", "generated by Cayenne" }, { "JJTree", "Generated By:JJTree" },
30              { "JavaCC", "Generated By:JavaCC" }, { "AUTOMATIC", "THIS FILE IS AUTOMATICALLY GENERATED" },
31              { "XBeans", "NOTE: this file is autogenerated by XBeans" },
32              { "automatic", "This file was automatically generated by" },
33              { "do not edit", "# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!" },
34              { "NMAKE", "# Microsoft Developer Studio Generated NMAKE File" },
35              { "MDS Build", "# Microsoft Developer Studio Generated Build File" },
36              { "autoheader", "Generated from configure.ac by autoheader" },
37              { "aclocal", "generated automatically by aclocal" },
38              { "maven project", "build.xml generated by maven from project.xml" },
39              { "generated", "This file was generated by" }, { "auto", "This file has been automatically generated." },
40              { "do not modify", "Automatically generated - do not modify!" }, { "javadoc style", "Javadoc style sheet" },
41              { "SOURCE", "SOURCE FILE GENERATATED" }, { "Batik", "Generated by the Batik" },
42              { "file autogenerated", "this file is autogenerated" },
43              { "class autogenerated", "This class was autogenerated" }, { "maven", "Generated by Maven" },
44              { "Thrift", "Autogenerated by Thrift" },
45              { "machine generated", "DO NOT EDIT THIS FILE - it is machine generated" },
46              { "generated by", "This class was generated by" }, { "javadoc", "Generated by javadoc" } };
47  
48      public static Stream<Arguments> parameterProvider() {
49          return Stream.of(Arguments.of( id, id, name, notes, targets));
50      }
51  }