Class AccordionTester

    • 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
      AccordionTester(T component) Wrap given component for testing.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void openDetails(String summary) Open the accordion with the given summary.
      boolean isOpen(String summary) Check if accordion with the summary is open.
      AccordionPanel getPanel(String summary) Get the panel with the summary.
      boolean hasPanel(String summary) Check if a panel for summary exists in accordion.
      • 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

      • AccordionTester

        AccordionTester(T component)
        Wrap given component for testing.
        Parameters:
        component - target component
    • Method Detail

      • openDetails

         void openDetails(String summary)

        Open the accordion with the given summary.

        Parameters:
        summary - summary of accordion panel
      • isOpen

         boolean isOpen(String summary)

        Check if accordion with the summary is open.

        Parameters:
        summary - summary of accordion panel
        Returns:

        true if panel is open

      • getPanel

         AccordionPanel getPanel(String summary)

        Get the panel with the summary. Throws if panel is not open.

        Parameters:
        summary - summary of accordion panel
        Returns:

        AccordionPanel for the given summary

      • hasPanel

         boolean hasPanel(String summary)

        Check if a panel for summary exists in accordion.

        Parameters:
        summary - summary of accordion panel
        Returns:

        true if panel exists