Package org.apache.rat.config.parameters
Class DescriptionBuilderTest
java.lang.Object
org.apache.rat.config.parameters.DescriptionBuilderTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<org.junit.jupiter.params.provider.Arguments>Scans the build classes directory to locate all class files that have Description annotations and ensure its validity.voidvoidtextConfigParameters(Class<?> clazz, Description desc) Test to verify that all Description based inspection invoked methods exist.
-
Constructor Details
-
DescriptionBuilderTest
public DescriptionBuilderTest()
-
-
Method Details
-
matcherMapBuildTest
@Test public void matcherMapBuildTest() -
textConfigParameters
@ParameterizedTest @MethodSource("descriptionSource") public void textConfigParameters(Class<?> clazz, Description desc) Test to verify that all Description based inspection invoked methods exist.- Parameters:
clazz- The class to checkdesc- The description of an element in that class.
-
descriptionSource
public static Stream<org.junit.jupiter.params.provider.Arguments> descriptionSource() throws URISyntaxException, ClassNotFoundExceptionScans the build classes directory to locate all class files that have Description annotations and ensure its validity.- Returns:
- A stream of class and descriptions to validate.
- Throws:
URISyntaxException- if URI is incorrect.ClassNotFoundException- if class can not be found.
-