java.lang.Object
is.codion.swing.framework.model.tools.loadtest.EntityLoadTestUtil

public final class EntityLoadTestUtil extends Object
A utility class for load testing SwingEntityApplicationModel instances.
  • Method Details

    • selectRandomRow

      public static void selectRandomRow(EntityTableModel<?> tableModel)
      Selects a random row in the given table model
      Parameters:
      tableModel - the table model
    • selectRandomRows

      public static void selectRandomRows(EntityTableModel<?> tableModel, int count)
      Selects random rows in the given table model
      Parameters:
      tableModel - the table model
      count - the number of rows to select
    • selectRandomRows

      public static void selectRandomRows(EntityTableModel<?> tableModel, double ratio)
      Selects random rows in the given table model
      Parameters:
      tableModel - the table model
      ratio - the ratio of available rows to select
    • selectRandomItem

      public static void selectRandomItem(EntityComboBoxModel comboBoxModel)
      Selects a random non-null visible item in the given combobox model, if one is available
      Parameters:
      comboBoxModel - the combobox model