Class AbstractConfigurationOptionsProvider

java.lang.Object
org.apache.rat.test.AbstractOptionsProvider
org.apache.rat.test.AbstractConfigurationOptionsProvider
All Implemented Interfaces:
org.junit.jupiter.params.provider.ArgumentsProvider

public abstract class AbstractConfigurationOptionsProvider extends AbstractOptionsProvider
A list of methods that an OptionsProvider in a test case must support. Use of this interface ensures consistent testing across the UIs. Each method tests an Option from OptionCollection that must be implemented in the UI. Each method in this interface tests an Option in OptionCollection.
  • Constructor Details

    • AbstractConfigurationOptionsProvider

      protected AbstractConfigurationOptionsProvider(String providerName, Collection<String> unsupportedArgs, File baseDir)
      Construct the tests.
      Parameters:
      providerName - the common name of the provider under test.
      unsupportedArgs - the list of unsupported arguments.
      baseDir - the base directory for the tests. Tests and test data will be copied to directories under this directory.
  • Method Details

    • preserveData

      public static void preserveData(File baseDir, String targetDir)
      Copy the runtime data to the "target" directory.
      Parameters:
      baseDir - the base directory to copy to.
      targetDir - the directory relative to the base directory to copy to.
    • setup

      public static File setup(File baseDir)
      Copies the test data to the specified directory.
      Parameters:
      baseDir - the directory to copy the /src/test/resources to.
      Returns:
      the baseDir argument.
    • excludeFileTest

      protected void excludeFileTest()
    • inputExcludeFileTest

      protected void inputExcludeFileTest()
    • excludeTest

      protected void excludeTest()
    • inputExcludeTest

      protected void inputExcludeTest()
    • inputExcludeStdTest

      protected void inputExcludeStdTest()
    • inputExcludeParsedScmTest

      protected void inputExcludeParsedScmTest()
    • inputIncludeFileTest

      protected void inputIncludeFileTest()
    • includesFileTest

      protected void includesFileTest()
    • includeTest

      protected void includeTest()
    • inputIncludeTest

      protected void inputIncludeTest()
    • inputIncludeStdTest

      protected void inputIncludeStdTest()
    • inputSourceTest

      protected void inputSourceTest()
    • execLicensesApprovedTest

      protected void execLicensesApprovedTest(org.apache.commons.cli.Option option, String[] args)
    • helpLicenses

      protected void helpLicenses()
    • licensesApprovedFileTest

      protected void licensesApprovedFileTest()
    • licensesApprovedTest

      protected void licensesApprovedTest()
    • licensesDeniedTest

      protected void licensesDeniedTest()
    • licensesDeniedFileTest

      protected void licensesDeniedFileTest()
    • licenseFamiliesApprovedFileTest

      protected void licenseFamiliesApprovedFileTest()
    • licenseFamiliesApprovedTest

      protected void licenseFamiliesApprovedTest()
    • licenseFamiliesDeniedFileTest

      protected void licenseFamiliesDeniedFileTest()
    • licenseFamiliesDeniedTest

      protected void licenseFamiliesDeniedTest()
    • counterMaxTest

      protected void counterMaxTest()
    • counterMinTest

      protected void counterMinTest()
    • licensesTest

      protected void licensesTest()
    • configTest

      protected void configTest()
    • noDefaultsTest

      protected void noDefaultsTest()
    • configurationNoDefaultsTest

      protected void configurationNoDefaultsTest()
    • dryRunTest

      protected void dryRunTest()
    • copyrightTest

      protected void copyrightTest()
    • editCopyrightTest

      protected void editCopyrightTest()
    • addLicenseTest

      protected void addLicenseTest()
    • editLicenseTest

      protected void editLicenseTest()
    • forceTest

      protected void forceTest()
    • editOverwriteTest

      protected void editOverwriteTest()
    • logLevelTest

      protected void logLevelTest()
    • outputArchiveTest

      protected void outputArchiveTest()
    • listFamiliesTest

      protected void listFamiliesTest()
    • outputFamiliesTest

      protected void outputFamiliesTest()
    • outTest

      protected void outTest()
    • outputFileTest

      protected void outputFileTest()
    • listLicensesTest

      protected void listLicensesTest()
    • outputLicensesTest

      protected void outputLicensesTest()
    • outputStandardTest

      protected void outputStandardTest()
    • styleSheetTest

      protected void styleSheetTest()
    • outputStyleTest

      protected void outputStyleTest()
    • scanHiddenDirectoriesTest

      protected void scanHiddenDirectoriesTest()
    • xmlTest

      protected void xmlTest()