Interface TesterWrappers

All Known Implementing Classes:
BrowserlessClassExtension, BrowserlessExtension, BrowserlessTest, BrowserlessUIContext, QuarkusBrowserlessTest, SpringBrowserlessTest

public interface TesterWrappers
Wrapper methods that hand out a tester for a component instance, mixed into the test base classes so a test can write test(component).
Since:
1.0
  • Method Details

    • activateTesterContext

      default void activateTesterContext()
      Hook for context-bound implementations to install Vaadin thread-locals before a component is wrapped in a tester. Called by every typed test(...) and popoverFor(...) method of this interface and of CommercialTesterWrappers. Default is a no-op.
    • test

      default AccordionTester<Accordion> test(Accordion accordion)
      Wraps the given component in a tester.
      Parameters:
      accordion - the component to wrap
      Returns:
      a tester for the given component
    • test

      default AvatarGroupTester<AvatarGroup> test(AvatarGroup avatarGroup)
      Wraps the given component in a tester.
      Parameters:
      avatarGroup - the component to wrap
      Returns:
      a tester for the given component
      Since:
      25.3
    • test

      default BreadcrumbsTester<Breadcrumbs> test(Breadcrumbs breadcrumbs)
      Wraps the given component in a tester.
      Parameters:
      breadcrumbs - the component to wrap
      Returns:
      a tester for the given component
    • test

      default ButtonTester<Button> test(Button button)
      Wraps the given component in a tester.
      Parameters:
      button - the component to wrap
      Returns:
      a tester for the given component
    • test

      default CardTester<Card> test(Card card)
      Wraps the given component in a tester.
      Parameters:
      card - the component to wrap
      Returns:
      a tester for the given component
      Since:
      25.3
    • test

      default CheckboxTester<Checkbox> test(Checkbox checkbox)
      Wraps the given component in a tester.
      Parameters:
      checkbox - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> CheckboxGroupTester<CheckboxGroup<V>,V> test(CheckboxGroup<V> checkboxGroup)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      checkboxGroup - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> CheckboxGroupTester<CheckboxGroup<V>,V> test(CheckboxGroup checkboxGroup, Class<V> valueType)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      checkboxGroup - the component to wrap
      valueType - the component to wrap
      Returns:
      a tester for the given component
    • test

      default SwitchTester<Switch> test(Switch field)
      Wraps the given component in a tester.
      Parameters:
      field - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> ComboBoxTester<ComboBox<V>,V> test(ComboBox<V> comboBox)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      comboBox - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> ComboBoxTester<ComboBox<V>,V> test(ComboBox comboBox, Class<V> valueType)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      comboBox - the component to wrap
      valueType - the component to wrap
      Returns:
      a tester for the given component
    • test

      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      comboBox - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> MultiSelectComboBoxTester<MultiSelectComboBox<V>,V> test(MultiSelectComboBox comboBox, Class<V> valueType)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      comboBox - the component to wrap
      valueType - the component to wrap
      Returns:
      a tester for the given component
    • test

      default ConfirmDialogTester test(ConfirmDialog confirmDialog)
      Wraps the given component in a tester.
      Parameters:
      confirmDialog - the component to wrap
      Returns:
      a tester for the given component
    • test

      default ContextMenuTester<ContextMenu> test(ContextMenu contextMenu)
      Wraps the given component in a tester.
      Parameters:
      contextMenu - the component to wrap
      Returns:
      a tester for the given component
    • test

      default DatePickerTester<DatePicker> test(DatePicker datePicker)
      Wraps the given component in a tester.
      Parameters:
      datePicker - the component to wrap
      Returns:
      a tester for the given component
    • test

      default DateTimePickerTester<DateTimePicker> test(DateTimePicker dateTimePicker)
      Wraps the given component in a tester.
      Parameters:
      dateTimePicker - the component to wrap
      Returns:
      a tester for the given component
    • test

      default DetailsTester<Details> test(Details details)
      Wraps the given component in a tester.
      Parameters:
      details - the component to wrap
      Returns:
      a tester for the given component
    • test

      default DialogTester test(Dialog dialog)
      Wraps the given component in a tester.
      Parameters:
      dialog - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> GridTester<Grid<V>,V> test(Grid<V> grid)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      grid - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> GridTester<Grid<V>,V> test(Grid grid, Class<V> itemType)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      grid - the component to wrap
      itemType - the type of the items in the component
      Returns:
      a tester for the given component
    • test

      default <V> GridContextMenuTester<GridContextMenu<V>,V> test(GridContextMenu<V> gridContextMenu)
      Create a tester for the given GridContextMenu instance.
      Type Parameters:
      V - the type of the items in the grid the menu is attached to
      Parameters:
      gridContextMenu - the GridContextMenu instance to be tested
      Returns:
      a GridContextMenuTester instance wrapping the given GridContextMenu
      Since:
      25.3
    • test

      default <V> ListBoxTester<ListBox<V>,V> test(ListBox<V> listBox)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      listBox - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> MultiSelectListBoxTester<MultiSelectListBox<V>,V> test(MultiSelectListBox<V> multiSelectListBox)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      multiSelectListBox - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> MultiSelectListBoxTester<MultiSelectListBox<V>,V> test(MultiSelectListBox multiSelectListBox, Class<V> valueType)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      multiSelectListBox - the component to wrap
      valueType - the component to wrap
      Returns:
      a tester for the given component
    • test

      default LoginFormTester<LoginForm> test(LoginForm loginForm)
      Wraps the given component in a tester.
      Parameters:
      loginForm - the component to wrap
      Returns:
      a tester for the given component
    • test

      default LoginOverlayTester<LoginOverlay> test(LoginOverlay loginOverlay)
      Wraps the given component in a tester.
      Parameters:
      loginOverlay - the component to wrap
      Returns:
      a tester for the given component
    • test

      default MarkdownTester<Markdown> test(Markdown markdown)
      Wraps the given component in a tester.
      Parameters:
      markdown - the component to wrap
      Returns:
      a tester for the given component
    • test

      Wraps the given component in a tester.
      Parameters:
      masterDetailLayout - the component to wrap
      Returns:
      a tester for the given component
    • test

      default MessageInputTester<MessageInput> test(MessageInput messageInput)
      Wraps the given component in a tester.
      Parameters:
      messageInput - the component to wrap
      Returns:
      a tester for the given component
    • test

      default MessageListTester<MessageList> test(MessageList messageList)
      Wraps the given component in a tester.
      Parameters:
      messageList - the component to wrap
      Returns:
      a tester for the given component
    • test

      default PopoverTester test(Popover popover)
      Wraps the given component in a tester.
      Parameters:
      popover - the component to wrap
      Returns:
      a tester for the given component
    • popoverFor

      default PopoverTester popoverFor(Component target)
      Wraps the given component in a tester.
      Parameters:
      target - the component to wrap
      Returns:
      a tester for the given component
    • popoverFor

      default PopoverTester popoverFor(ComponentQuery<? extends Component> query)
      Wraps the given component in a tester.
      Parameters:
      query - the component to wrap
      Returns:
      a tester for the given component
    • test

      default NotificationTester<Notification> test(Notification notification)
      Wraps the given component in a tester.
      Parameters:
      notification - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> RadioButtonGroupTester<RadioButtonGroup<V>,V> test(RadioButtonGroup<V> radioButtonGroup)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      radioButtonGroup - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> RadioButtonGroupTester<RadioButtonGroup<V>,V> test(RadioButtonGroup radioButtonGroup, Class<V> valueType)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      radioButtonGroup - the component to wrap
      valueType - the component to wrap
      Returns:
      a tester for the given component
    • test

      default RouterLinkTester<RouterLink> test(RouterLink routerLink)
      Wraps the given component in a tester.
      Parameters:
      routerLink - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> SelectTester<Select<V>,V> test(Select<V> select)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      select - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> SelectTester<Select<V>,V> test(Select select, Class<V> valueType)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      select - the component to wrap
      valueType - the component to wrap
      Returns:
      a tester for the given component
    • test

      default SideNavTester<SideNav> test(SideNav sideNav)
      Wraps the given component in a tester.
      Parameters:
      sideNav - the component to wrap
      Returns:
      a tester for the given component
    • test

      Wraps the given component in a tester.
      Parameters:
      rangeSlider - the component to wrap
      Returns:
      a tester for the given component
      Since:
      1.1
    • test

      Wraps the given component in a tester.
      Parameters:
      integerRangeSlider - the component to wrap
      Returns:
      a tester for the given component
      Since:
      1.1
    • test

      Wraps the given component in a tester.
      Parameters:
      slider - the component to wrap
      Returns:
      a tester for the given component
      Since:
      1.1
    • test

      default IntegerSliderTester<IntegerSlider> test(IntegerSlider integerSlider)
      Wraps the given component in a tester.
      Parameters:
      integerSlider - the component to wrap
      Returns:
      a tester for the given component
      Since:
      1.1
    • test

      default SplitLayoutTester<SplitLayout> test(SplitLayout splitLayout)
      Wraps the given component in a tester.
      Parameters:
      splitLayout - the component to wrap
      Returns:
      a tester for the given component
      Since:
      25.3
    • test

      default TabsTester<Tabs> test(Tabs tabs)
      Wraps the given component in a tester.
      Parameters:
      tabs - the component to wrap
      Returns:
      a tester for the given component
    • test

      default TabSheetTester<TabSheet> test(TabSheet tabSheet)
      Wraps the given component in a tester.
      Parameters:
      tabSheet - the component to wrap
      Returns:
      a tester for the given component
    • test

      default TextTester<Text> test(Text text)
      Wraps the given component in a tester.
      Parameters:
      text - the component to wrap
      Returns:
      a tester for the given component
    • test

      default NumberFieldTester<IntegerField,Integer> test(IntegerField integerField)
      Wraps the given component in a tester.
      Parameters:
      integerField - the component to wrap
      Returns:
      a tester for the given component
    • test

      default NumberFieldTester<NumberField,Double> test(NumberField numberField)
      Wraps the given component in a tester.
      Parameters:
      numberField - the component to wrap
      Returns:
      a tester for the given component
    • test

      default TextAreaTester<TextArea> test(TextArea textArea)
      Wraps the given component in a tester.
      Parameters:
      textArea - the component to wrap
      Returns:
      a tester for the given component
    • test

      default TextFieldTester<TextField,String> test(TextField textField)
      Wraps the given component in a tester.
      Parameters:
      textField - the component to wrap
      Returns:
      a tester for the given component
    • test

      default TextFieldTester<PasswordField,String> test(PasswordField passwordField)
      Wraps the given component in a tester.
      Parameters:
      passwordField - the component to wrap
      Returns:
      a tester for the given component
    • test

      default TextFieldTester<EmailField,String> test(EmailField emailField)
      Wraps the given component in a tester.
      Parameters:
      emailField - the component to wrap
      Returns:
      a tester for the given component
    • test

      default TextFieldTester<BigDecimalField,BigDecimal> test(BigDecimalField bigDecimalField)
      Wraps the given component in a tester.
      Parameters:
      bigDecimalField - the component to wrap
      Returns:
      a tester for the given component
    • test

      default TimePickerTester<TimePicker> test(TimePicker timePicker)
      Wraps the given component in a tester.
      Parameters:
      timePicker - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> TreeGridTester<TreeGrid<V>,V> test(TreeGrid<V> treeGrid)
      Create a tester for the given TreeGrid instance.

      This overload is more specific than test(Grid), so a TreeGrid argument now yields a TreeGridTester rather than a GridTester. Code that assigned the result to an explicitly typed GridTester<Grid<V>, V> no longer compiles and has to widen the declaration, use var, or chain the call directly.

      Type Parameters:
      V - the type of the items in the TreeGrid
      Parameters:
      treeGrid - the TreeGrid instance to be tested
      Returns:
      a TreeGridTester instance wrapping the given TreeGrid
      Since:
      25.3
    • test

      default <V> TreeGridTester<TreeGrid<V>,V> test(TreeGrid treeGrid, Class<V> itemType)
      Create a tester for the given TreeGrid instance.

      This overload is more specific than test(Grid, Class), so a TreeGrid argument now yields a TreeGridTester rather than a GridTester. Code that assigned the result to an explicitly typed GridTester<Grid<V>, V> no longer compiles and has to widen the declaration, use var, or chain the call directly.

      Type Parameters:
      V - the type of the items in the TreeGrid
      Parameters:
      treeGrid - the TreeGrid instance to be tested
      itemType - the type of the items in the TreeGrid
      Returns:
      a TreeGridTester instance wrapping the given TreeGrid
      Since:
      25.3
    • test

      default UploadTester<Upload> test(Upload upload)
      Wraps the given component in a tester.
      Parameters:
      upload - the component to wrap
      Returns:
      a tester for the given component
    • test

      default UploadButtonTester<UploadButton> test(UploadButton uploadButton)
      Create a tester for the given UploadButton instance.

      This overload is more specific than test(Button), so an UploadButton argument yields an UploadButtonTester rather than a ButtonTester. Code that assigned the result to an explicitly typed ButtonTester<Button> no longer compiles and has to widen the declaration, use var, or chain the call directly.

      Parameters:
      uploadButton - the UploadButton instance to be tested
      Returns:
      an UploadButtonTester instance wrapping the given UploadButton
    • test

      default UploadDropZoneTester<UploadDropZone> test(UploadDropZone uploadDropZone)
      Wraps the given component in a tester.
      Parameters:
      uploadDropZone - the component to wrap
      Returns:
      a tester for the given component
    • test

      default UploadFileListTester<UploadFileList> test(UploadFileList uploadFileList)
      Wraps the given component in a tester.
      Parameters:
      uploadFileList - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> VirtualListTester<VirtualList<V>,V> test(VirtualList<V> virtualList)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      virtualList - the component to wrap
      Returns:
      a tester for the given component
    • test

      default <V> VirtualListTester<VirtualList<V>,V> test(VirtualList virtualList, Class<V> itemType)
      Wraps the given component in a tester.
      Type Parameters:
      V - the type of the items in the component
      Parameters:
      virtualList - the component to wrap
      itemType - the type of the items in the component
      Returns:
      a tester for the given component
    • test

      default AnchorTester test(Anchor anchor)
      Wraps the given component in a tester.
      Parameters:
      anchor - the component to wrap
      Returns:
      a tester for the given component
    • test

      default DescriptionListTester test(DescriptionList descriptionList)
      Wraps the given component in a tester.
      Parameters:
      descriptionList - the component to wrap
      Returns:
      a tester for the given component
    • test

      default DivTester test(Div div)
      Wraps the given component in a tester.
      Parameters:
      div - the component to wrap
      Returns:
      a tester for the given component
    • test

      default EmphasisTester test(Emphasis emphasis)
      Wraps the given component in a tester.
      Parameters:
      emphasis - the component to wrap
      Returns:
      a tester for the given component
    • test

      default H1Tester test(H1 h1)
      Wraps the given component in a tester.
      Parameters:
      h1 - the component to wrap
      Returns:
      a tester for the given component
    • test

      default H2Tester test(H2 h2)
      Wraps the given component in a tester.
      Parameters:
      h2 - the component to wrap
      Returns:
      a tester for the given component
    • test

      default H3Tester test(H3 h3)
      Wraps the given component in a tester.
      Parameters:
      h3 - the component to wrap
      Returns:
      a tester for the given component
    • test

      default H4Tester test(H4 h4)
      Wraps the given component in a tester.
      Parameters:
      h4 - the component to wrap
      Returns:
      a tester for the given component
    • test

      default H5Tester test(H5 h5)
      Wraps the given component in a tester.
      Parameters:
      h5 - the component to wrap
      Returns:
      a tester for the given component
    • test

      default H6Tester test(H6 h6)
      Wraps the given component in a tester.
      Parameters:
      h6 - the component to wrap
      Returns:
      a tester for the given component
    • test

      default HrTester test(Hr hr)
      Wraps the given component in a tester.
      Parameters:
      hr - the component to wrap
      Returns:
      a tester for the given component
    • test

      default ImageTester test(Image image)
      Wraps the given component in a tester.
      Parameters:
      image - the component to wrap
      Returns:
      a tester for the given component
    • test

      default InputTester test(Input input)
      Wraps the given component in a tester.
      Parameters:
      input - the component to wrap
      Returns:
      a tester for the given component
    • test

      default RangeInputTester test(RangeInput input)
      Wraps the given component in a tester.
      Parameters:
      input - the component to wrap
      Returns:
      a tester for the given component
    • test

      default NativeLabelTester test(NativeLabel label)
      Wraps the given component in a tester.
      Parameters:
      label - the component to wrap
      Returns:
      a tester for the given component
    • test

      default ListItemTester test(ListItem listItem)
      Wraps the given component in a tester.
      Parameters:
      listItem - the component to wrap
      Returns:
      a tester for the given component
    • test

      default NativeButtonTester test(NativeButton nativeButton)
      Wraps the given component in a tester.
      Parameters:
      nativeButton - the component to wrap
      Returns:
      a tester for the given component
    • test

      default NativeDetailsTester test(NativeDetails nativeDetails)
      Wraps the given component in a tester.
      Parameters:
      nativeDetails - the component to wrap
      Returns:
      a tester for the given component
    • test

      default OrderedListTester test(OrderedList orderedList)
      Wraps the given component in a tester.
      Parameters:
      orderedList - the component to wrap
      Returns:
      a tester for the given component
    • test

      default ParagraphTester test(Paragraph paragraph)
      Wraps the given component in a tester.
      Parameters:
      paragraph - the component to wrap
      Returns:
      a tester for the given component
    • test

      default PreTester test(Pre pre)
      Wraps the given component in a tester.
      Parameters:
      pre - the component to wrap
      Returns:
      a tester for the given component
    • test

      default SpanTester test(Span span)
      Wraps the given component in a tester.
      Parameters:
      span - the component to wrap
      Returns:
      a tester for the given component
    • test

      default UnorderedListTester test(UnorderedList unorderedList)
      Wraps the given component in a tester.
      Parameters:
      unorderedList - the component to wrap
      Returns:
      a tester for the given component