Interface ILicenseTester

All Known Implementing Classes:
LicenseTester, SimpleLicenseTester

public interface ILicenseTester
Interface for license testers
Author:
Gary O'Neall
  • Method Details

    • testException

      List<String> testException​(org.spdx.library.model.license.LicenseException exception) throws IOException, org.spdx.library.InvalidSPDXAnalysisException
      Test exception against the test files directory
      Parameters:
      exception -
      Returns:
      Throws:
      IOException
      org.spdx.library.InvalidSPDXAnalysisException
    • testLicense

      List<String> testLicense​(org.spdx.library.model.license.License license) throws IOException, org.spdx.utility.compare.SpdxCompareException, org.spdx.library.InvalidSPDXAnalysisException
      Test a license against the license test files
      Parameters:
      license - license to test
      Returns:
      list of test failure descriptions. List is empty if all tests pass.
      Throws:
      IOException
      org.spdx.utility.compare.SpdxCompareException
      org.spdx.library.InvalidSPDXAnalysisException
    • getLicenseTestText

      @Nullable String getLicenseTestText​(String licenseId) throws IOException
      Parameters:
      licenseId -
      Returns:
      text for the test for a license ID, null if no license text is found
      Throws:
      IOException
    • getExceptionTestText

      @Nullable String getExceptionTestText​(String licenseExceptionId) throws IOException
      Parameters:
      licenseExceptionId -
      Returns:
      text for the test for a exception ID, null if no license text is found
      Throws:
      IOException