Class ConfirmDialogTester

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final T component
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfirmDialogTester(ConfirmDialog component) Wrap given component for testing.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void open()
      void confirm() Click the confirm button.
      void cancel() Click cancel button.
      void reject() Click reject button.
      String getText() Get the confirmation message text set to the component.
      String getHeader() Get the header of the confirm dialog.
      Element getHeaderElement() Get the header element set to the confirm dialog.
      • Methods inherited from class com.vaadin.testbench.unit.ComponentTester

        find, getComponent, isUsable, setModal
      • Methods inherited from class java.lang.Object

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

      • ConfirmDialogTester

        ConfirmDialogTester(ConfirmDialog component)
        Wrap given component for testing.
        Parameters:
        component - target component
    • Method Detail

      • confirm

         void confirm()

        Click the confirm button.

      • cancel

         void cancel()

        Click cancel button.

      • reject

         void reject()

        Click reject button.

      • getText

         String getText()

        Get the confirmation message text set to the component.

        Returns:

        confirmation message

      • getHeader

         String getHeader()

        Get the header of the confirm dialog.

        Returns:

        current header of dialog

      • getHeaderElement

         Element getHeaderElement()

        Get the header element set to the confirm dialog.

        Returns:

        header element