Class EntityLoadTestUtil
java.lang.Object
is.codion.swing.framework.model.tools.loadtest.EntityLoadTestUtil
A utility class for load testing SwingEntityApplicationModel instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidselectRandomItem(is.codion.swing.framework.model.component.EntityComboBoxModel comboBoxModel) Selects a random non-null visible item in the given combobox model, if one is availablestatic voidselectRandomRow(is.codion.framework.model.EntityTableModel<?> tableModel) Selects a random row in the given table modelstatic voidselectRandomRows(is.codion.framework.model.EntityTableModel<?> tableModel, double ratio) Selects random rows in the given table modelstatic voidselectRandomRows(is.codion.framework.model.EntityTableModel<?> tableModel, int count) Selects random rows in the given table model
-
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 modelcount- 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 modelratio- 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
-