Class DescriptionBuilderTest

java.lang.Object
org.apache.rat.config.parameters.DescriptionBuilderTest

public class DescriptionBuilderTest extends Object
  • 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 check
      desc - The description of an element in that class.
    • descriptionSource

      public static Stream<org.junit.jupiter.params.provider.Arguments> descriptionSource() throws URISyntaxException, ClassNotFoundException
      Scans 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.