public class LicenseTester extends Object implements ILicenseTester
| Constructor and Description |
|---|
LicenseTester(File licenseTestDirectory) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
testException(LicenseException exception)
Test exception against the test files directory
|
List<String> |
testLicense(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(License license) throws IOException, SpdxCompareException
testLicense in interface ILicenseTesterlicense - license to testIOExceptionSpdxCompareExceptionpublic List<String> testException(LicenseException exception) throws IOException
testException in interface ILicenseTesterexception - IOExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.