public class SimpleLicenseTester extends Object implements ILicenseTester
| Constructor and Description |
|---|
SimpleLicenseTester(File testFileDir) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
testException(org.spdx.rdfparser.license.LicenseException exception)
Test exception against the test files directory
|
List<String> |
testLicense(org.spdx.rdfparser.license.License license)
Test a license against the license test files
|
public SimpleLicenseTester(File testFileDir)
testFileDir - Directory containing license texts in the format [license-id].txtpublic List<String> testException(org.spdx.rdfparser.license.LicenseException exception) throws IOException
ILicenseTestertestException in interface ILicenseTesterIOExceptionpublic List<String> testLicense(org.spdx.rdfparser.license.License license) throws IOException
ILicenseTestertestLicense in interface ILicenseTesterlicense - license to testIOExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.