Interface ILicenseTester
- All Known Implementing Classes:
LicenseTester,SimpleLicenseTester
public interface ILicenseTester
Interface for license testers
- Author:
- Gary O'Neall
-
Method Summary
Modifier and TypeMethodDescriptiongetExceptionTestText(String licenseExceptionId) getLicenseTestText(String licenseId) testException(ListedExceptionContainer exceptionContainer) Test exception against the test files directorytestLicense(ListedLicenseContainer licenseContainer) Test a license against the license test files
-
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:
IOExceptionorg.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:
IOExceptionorg.spdx.utility.compare.SpdxCompareExceptionorg.spdx.core.InvalidSPDXAnalysisException
-
getLicenseTestText
- Parameters:
licenseId-- Returns:
- text for the test for a license ID, null if no license text is found
- Throws:
IOException
-
getExceptionTestText
- Parameters:
licenseExceptionId-- Returns:
- text for the test for a exception ID, null if no license text is found
- Throws:
IOException
-