Class OptionCollectionTest

java.lang.Object
org.apache.rat.OptionCollectionTest

public class OptionCollectionTest extends Object
  • Constructor Details

    • OptionCollectionTest

      public OptionCollectionTest()
  • Method Details

    • getTestPath

      public static Path getTestPath()
      Gets the test path for.
      Returns:
      the test path.
    • processTestFunctionAnnotations

      public static Map<String,OptionCollectionTest.OptionTest> processTestFunctionAnnotations(Object testProvider)
      Process methods in a test provider. Tests are detected by looking for the OptionCollectionTest.TestFunction annotation.
      Parameters:
      testProvider - the test provider.
      Returns:
      a map of named tests to a named OptionTest.
    • testDeprecatedUseLogged

      @Test public void testDeprecatedUseLogged() throws IOException
      Throws:
      IOException
    • testDirOptionCapturesDirectoryToScan

      @Test public void testDirOptionCapturesDirectoryToScan() throws IOException
      Throws:
      IOException
    • testShortenedOptions

      @Test public void testShortenedOptions() throws IOException
      Throws:
      IOException
    • testDefaultConfiguration

      @Test public void testDefaultConfiguration() throws org.apache.commons.cli.ParseException
      Throws:
      org.apache.commons.cli.ParseException
    • getReportableTest

      @ParameterizedTest @ValueSource(strings={".","./","target","./target"}) public void getReportableTest(String fName) throws IOException
      Throws:
      IOException
    • testOptionsUpdateConfig

      @ParameterizedTest(name="{index} {0}") @ArgumentsSource(org.apache.rat.OptionCollectionTest.ArgOptionsProvider.class) public void testOptionsUpdateConfig(String name, OptionCollectionTest.OptionTest test)
      A parameterized test for the options.
      Parameters:
      name - the name of the test.
      test - the option test to execute.