public class LicenseTester extends Object implements ILicenseTester
| Constructor and Description |
|---|
LicenseTester(File licenseTestDirectory) |
| 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 LicenseTester(File licenseTestDirectory)
licenseTestDirectory - Directory of license text files for comparison in the form {license-id}/(license|header|exception)/(good|bad)/{test-id}.txtpublic List<String> testLicense(org.spdx.rdfparser.license.License license) throws IOException, org.spdx.compare.SpdxCompareException
testLicense in interface ILicenseTesterlicense - license to testIOExceptionorg.spdx.compare.SpdxCompareExceptionpublic List<String> testException(org.spdx.rdfparser.license.LicenseException exception) throws IOException
testException in interface ILicenseTesterexception - IOExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.