Class TestingLicense

java.lang.Object
org.apache.rat.testhelpers.TestingLicense
All Implemented Interfaces:
Comparable<ILicense>, IHeaderMatcher, ILicense

public class TestingLicense extends Object implements ILicense
A class to quickly build testing licenses.
  • Constructor Details

    • TestingLicense

      public TestingLicense(String id)
      Creates a testing license with the specified id and a default TestingMatcher
      Parameters:
      id - the id to use.
      See Also:
    • TestingLicense

      public TestingLicense(String family, String id)
      Creates a testing license with the specified id and a default TestingMatcher
      Parameters:
      family - the Family id.
      id - the id to use.
      See Also:
    • TestingLicense

      public TestingLicense(String family, String id, IHeaderMatcher matcher)
      Creates a testing license with the specified id and matcher.
      Parameters:
      id - the id to use.
      matcher - the matcher to execute.
    • TestingLicense

      public TestingLicense(String id, IHeaderMatcher matcher, ILicenseFamily family)
      Creates a testing license with the specified matcher and family.
      Parameters:
      id - the license id to use.
      matcher - the matcher to use.
      family - the family for this license.
  • Method Details