Annotation Interface ComponentTesterPackages


@Target(TYPE) @Retention(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.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Array of packages to scan for ComponentTester implementations.
  • Element Details

    • value

      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