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 Summary

    Modifier and Type
    Method
    Description
    static void
    selectRandomItem(is.codion.swing.framework.model.component.EntityComboBoxModel comboBoxModel)
    Selects a random non-null visible item in the given combobox model, if one is available
    static void
    selectRandomRow(is.codion.framework.model.EntityTableModel<?> tableModel)
    Selects a random row in the given table model
    static void
    selectRandomRows(is.codion.framework.model.EntityTableModel<?> tableModel, double ratio)
    Selects random rows in the given table model
    static void
    selectRandomRows(is.codion.framework.model.EntityTableModel<?> tableModel, int count)
    Selects random rows in the given table model

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • selectRandomRow

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

      public static void selectRandomRows(is.codion.framework.model.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(is.codion.framework.model.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(is.codion.swing.framework.model.component.EntityComboBoxModel comboBoxModel)
      Selects a random non-null visible item in the given combobox model, if one is available
      Parameters:
      comboBoxModel - the combobox model