Annotation ComponentTesterPackages

  • All Implemented Interfaces:
    java.lang.annotation.Annotation

    @Target(value = {ElementType.TYPE})@Retention(value = RetentionPolicy.RUNTIME) 
    public @interface ComponentTesterPackages
    
                        

    Annotation to use to scan given packages for component wrappers outside the default com.vaadin.flow.component.

    This makes adding custom component wrappers simpler as they can then use package protected fields and methods.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Array<String> value() Array of packages to scan for ComponentTester implementations.
      • Methods inherited from class java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • value

         abstract Array<String> value()

        Array of packages to scan for ComponentTester implementations.

        Implementation should use the Tests annotation to be used automatically in the wraps(Component) method.
        Returns:

        String array of packages to scan