Enum Class TestFXId

java.lang.Object
java.lang.Enum<TestFXId>
org.troy.capstone.constants.TestFXId
All Implemented Interfaces:
Serializable, Comparable<TestFXId>, Constable

public enum TestFXId extends Enum<TestFXId>
Enum representing the IDs of various UI components for TestFX testing.
  • Enum Constant Details

    • SORT_OPTION_DROPDOWN

      public static final TestFXId SORT_OPTION_DROPDOWN
      ID for the sort option dropdown in the UI
    • SORT_OPTION_CELL_PREFIX

      public static final TestFXId SORT_OPTION_CELL_PREFIX
      ID prefix for cells in the sort option dropdown, where the full ID includes RowComparator.toString() after the prefix
    • SEARCH_FIELD

      public static final TestFXId SEARCH_FIELD
      ID for the search field in the UI
    • SEARCH_BUTTON

      public static final TestFXId SEARCH_BUTTON
      ID for the search button in the UI
    • MIN_PRICE_SLIDER

      public static final TestFXId MIN_PRICE_SLIDER
      ID for the min price slider in the UI
    • MAX_PRICE_SLIDER

      public static final TestFXId MAX_PRICE_SLIDER
      ID for the max price slider in the UI
    • STAR_LABEL_PREFIX

      public static final TestFXId STAR_LABEL_PREFIX
      ID prefix for star rating labels in the UI, where the full ID just includes the rating
    • STAR_RATING_FILTER

      public static final TestFXId STAR_RATING_FILTER
      ID for the star rating filter component in the UI
    • CHECKBOX_PREFIX

      public static final TestFXId CHECKBOX_PREFIX
      ID prefix for filter checkboxes in the UI, where the full ID includes the filter option
    • FILTER_PANEL_PREFIX

      public static final TestFXId FILTER_PANEL_PREFIX
      ID prefix for filter panels in the UI, where the full ID includes the filter category
    • SEARCHED_ITEM_CONTAINER_CONTAINER

      public static final TestFXId SEARCHED_ITEM_CONTAINER_CONTAINER
      ID for the container that holds the searched item panels in the UI. Note that the SearchedItemContainer is a ScrollPane holding the VBox which is what this ID points to.
    • SEARCHED_ITEM_PAGINATION

      public static final TestFXId SEARCHED_ITEM_PAGINATION
      ID for the pagination component that holds the SearchedItemContainer in the UI
    • RECENTLY_VIEWED_CONTAINER

      public static final TestFXId RECENTLY_VIEWED_CONTAINER
      ID for the container that holds the recently viewed item panels in the UI
    • SIMILAR_ITEMS_CONTAINER

      public static final TestFXId SIMILAR_ITEMS_CONTAINER
      ID for the container that holds the similar item panels in the UI
    • FIRST_SEARCHED_ITEM_NAME_LABEL

      public static final TestFXId FIRST_SEARCHED_ITEM_NAME_LABEL
      ID for the name label of the first searchedItemPanel. The name label is used to avoid triggering external links elsewhere in the SearchedItemPanel
  • Field Details

    • id

      private final String id
      The string ID associated with the TestFXId enum value.
  • Constructor Details

    • TestFXId

      private TestFXId(String id)
      Constructs a TestFXId enum value with the specified string ID.
      Parameters:
      id - The string ID to be associated with the TestFXId enum value.
  • Method Details

    • values

      public static TestFXId[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TestFXId valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public String getId()
      Returns the string ID associated with this TestFXId enum value.
      Returns:
      The string ID associated with this TestFXId enum value.