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(ListedExceptionContainer exceptionContainer) throws IOException, org.spdx.core.InvalidSPDXAnalysisException
      Test exception against the test files directory
      Parameters:
      exceptionContainer -
      Returns:
      Throws:
      IOException
      org.spdx.core.InvalidSPDXAnalysisException
    • testLicense

      List<String> testLicense(ListedLicenseContainer licenseContainer) throws IOException, org.spdx.utility.compare.SpdxCompareException, org.spdx.core.InvalidSPDXAnalysisException
      Test a license against the license test files
      Parameters:
      licenseContainer - 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.core.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