Package org.apache.rat
Class OptionCollectionTest
java.lang.Object
org.apache.rat.OptionCollectionTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefines the test method that is stored in a map.static @interfaceA test function. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetReportableTest(String fName) static PathGets the test path for.static Map<String,OptionCollectionTest.OptionTest> processTestFunctionAnnotations(Object testProvider) Process methods in a test provider.voidvoidvoidvoidA parameterized test for the options.void
-
Constructor Details
-
OptionCollectionTest
public OptionCollectionTest()
-
-
Method Details
-
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 theOptionCollectionTest.TestFunctionannotation.- Parameters:
testProvider- the test provider.- Returns:
- a map of named tests to a named OptionTest.
-
testDeprecatedUseLogged
- Throws:
IOException
-
testDirOptionCapturesDirectoryToScan
- Throws:
IOException
-
testShortenedOptions
- 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.
-